-
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 Taking a Long Time To Render #9581
Comments
Evince takes about six seconds to render this PDF file. I think the problem is that the embedded image is 8000 x 5333 pixels, which is rather large. Vector images would be much faster than large embedded PNG images. To fix this, we most likely need canvas tiling. |
Hi, thanks for getting back so ridiculously quickly! I have tried resizing this to a standard (scaled) A4 PDF as well which also seems to take quite a while to render. This is a different file but both are attached here. Again this renders slowly on FF/PDFJS but quickly on other browser. These are both images generated from CAD drawings so may be complex. Thanks again |
Related / Duplicate of issue #6741 ? |
Actually, you are right. My "scaled" PDF (using itextsharp's image.ScaleToFit(document.PageSize)) does not actually seem to resize the image itself, meaning that even in the a4 example it is still a large image (despite it not being a large draw size, if that makes sense). Manually opening the image in MS Paint and resizing it to say Thanks |
Hi, Thanks, |
Closing since this file now renders in about 5 seconds after the fix above, as indicated in the original post and as I found Okular takes too. |
architectural_-_annotation_scaling_and_multileaders.SECTIONS AND DETAILSs2 (2).png.pdf
Hi guys,
Apologies, as I hate these types of bug filings, but I have a relatively simple PDF which takes a long time to load on FF 59. This loads pretty much instantly in other PDF viewers. The PDF is just an embedded PNG inside a PDF document (though the attached document has a simple annotation added as well, this happens without it). It is causing me some grief as it takes ~40 seconds to load in Firefox/embedded PDFJS (both the most up-to-date versions as of March 2018) but has no issues in other browsers. Both the PDF and the original PNG should be attached here.
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot) Renders ~5s
What went wrong? (add screenshot): Consistently renders ~40s
I really have no further information nor the skills to say why the resultant PDF is complex, sorry.
Thanks!
The text was updated successfully, but these errors were encountered: