-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF printed document blurry #15933
Comments
Duplicate of #2750 |
Hi @Snuffleupagus, I'm not sure if I understand correctly. I have tried setting printResolution option in Chrome console for my document in https://mozilla.github.io/pdf.js/web/viewer.html, as instructed in #2750 (comment), for example: PDFViewerApplicationOptions.set('printResolution', 300) but the blurry still persists when printing (I have tried multiple resolutions: 300, 600 and 1200; also 60 to confirm that the property is applied through Chrome Console) |
I just came across pdf.js. i'm also interested in using it to print to zebra printer. @hmilas: I have opened https://mozilla.github.io/pdf.js/web/viewer.html and used console to set printresolution to 600 dpi with But anyhow, when i look at your PDF, when using the setting |
I spent a few more hours analyzing the problem. I noticed that the blurriness in the barcode that I saw in your original ZIP file is apparently only created by the PDF renderer of mac os. When I open the original file in the Chrome PDF Viewer and zoom it in a lot, all the lines are totally clear! So it is really a solution to simply set set I also have played a bit with the hello world example, but i needed to do it on my own server, because otherwise i was not able to get your pdf in because of CORS. here you can check the different render results for your PDF for different settings for |
One interesting thing i found out while playing with different values for scale and outputScale. Usually the quality gets better with higher values for outputScale. But not for all! its also blurred With these combinations the inner barcode it looks as bad, as with the mac os renderer. |
Attach (recommended) or Link to PDF file
zebra document.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? Printed document is not blurred
What went wrong? (add screenshot)
Actually, I'm using https://github.com/stephanrauh/ngx-extended-pdf-viewer, which then uses pdf.js, but the problem is also reproducible on https://mozilla.github.io/pdf.js/web/viewer.html
If you take attached PDF, and print it from Chrome browser directly or from Adobe Acrobat, it is crisp.
But if you print it from pdf.js, it becomes blurry.
Actual printer that is used in production code is Zebra GTK 420t, which has 202 dpi, and works crisp when directly printing both from Adobe Acrobat and Chrome.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
https://mozilla.github.io/pdf.js/web/viewer.html
The text was updated successfully, but these errors were encountered: