-
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 is blurry #14147
Comments
This comment has been minimized.
This comment has been minimized.
Hi, sorry for the late reply. I am unsure if that's for me to decide. The issue is still very much present on my end. |
The problem in the PDF here and #14724 is that the PDFs are very large and so we render them using CSS zoom. |
Hi @marco-c, is there any plan to fix this probelm. Or is there any workaround? |
Hi there, I'm sorry to drag up this old issue once again. But I'd really need to render some PDFs with rather large page sizes as in #14724 (closed as duplicate of this issue). Did anyone find a workaround for the problem? On a side note: I suspect the CSS zoom is somehow also messing with centering the search results when the page is too large - perhaps it's scaling is ever-so-slightly different? Any thoughts on that? |
@julian-eckhardt , that's crazy that they haven't fixed this yet. At least as a workaround for printing certain PDFs so that they weren't blurry, I started having the PDFs automatically open in an external viewer (SumatraPDF) -- but using an external viewer really isn't a useful workaround when you want to view PDFs directly in Firefox, have multiple tabs open, and have it remember the viewing position. |
If we're too slow for you, please feel free to write a patch, make a PR and we'll review it, instead of complaining. |
I very much appreciate free software, definitely not complaining -- just surprised that it's still an issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Getting back on topic, here's what fixed it for me (note, it might not fix it for you) I increased the scale here from "1" to "3". When I looked at the viewport dimentions, I noticed that they were very small (like 250x500 pixels) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Is it possible to modify whatever that scale parameter's default value is in pdf.js, as used in Firefox? I get that you're setting the viewport variable to the output of that function, but how would someone go about modifying the viewport variable so that it would practically apply to viewing the PDF from the OP in Firefox? |
Attach (recommended) or Link to PDF file here:
en_110.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
In the image you can see the result of opening the same file at a similar zoom level on Firefox (left) and Edge (right)
What went wrong? (add screenshot)
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
The text was updated successfully, but these errors were encountered: