My company is creating some kind of PDF Editor.
We're using pdf.js currently to render the PDF onto the web.
The problem we're having is when the PDF is printed after edited.
The texts are blurry.
We are using window.print(); to print the PDF. But because the pdf.js per se, renders blurry texts, we don't achieve what we want.
What we're currently planning is to integrate it with Adobe DC SDK.
What advice can you give on it?
What things to be taken care of?
I don't use Windows and I'm not sure I understand the full dynamics of what you're doing but as soon as you said you are using "We are using widow.print(): to print the PDF." I think I know what the problem might be.
When you use window.print, you are probably not using Acrobat or anything Adobe to generate the PDF and as such, that's a potential problem. ANYONE can make a PDF generator and not all are up to snuff. In fact, most are not very good.
I'm sorry I cannot instruct you how to do what you are trying to do but fortunately there are many PC users who prowl these forums so I'm sure you will get help.
Bear in mind
- the Acrobat SDK is an interface which uses Adobe Acrobat Pro
- each user needs an Acrobat Pro license
- it cannot and must not be used on a server
To write an INTERACTIVE editor in Acrobat SDK is a major undertaking and you will surely need detailed knowledge of both C++ and PDF internals. The editor in Acrobat, weak and limited as it is, is nevertheless the result of countless person-years work.
To write a non-interactive editor, that is one which acts on known requests and patterns may vary from simple to impossible, depending on the wish.
this is what we're building:
the huge red-highlighted box is the PDF. the others are added objects, including the black boxes inside the red-highlighted box. We're not able to achieve what we want using Embed API in this case. What should we do next?
So, you are developing a web interface, not a tool for individual users with Acrobat Pro to use in their own computers?
yea. I forgot to mention that it's a web-based PDF editor
Must it be self-contained in JS, or can it run client/server with a web service you create?
I don't know what "self-contained in JS" means but the app is currently using mozilla/pdf.js library to render the PDF part. We're using Vue.js/Node.js/Webpack on this. The Adobe PDF Embed API seems not giving many options that eventually could mimic the behavior of pdf.js, at least in our use case
Self contained: let me give an example from Adobe's online APIs.
The problem is that editing PDF in the general case is massively complex. You've shared a screen shot, but it doesn't show what you started with and what edits actually need to be made in PDF terms.