-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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 viewer errors in chrome #6459
Comments
Link to PDF? See https://github.com/mozilla/pdf.js/blob/master/CONTRIBUTING.md |
I've tested some pdf files (made from jpg pictures), each file with different page size/format can reproduce the bug. |
example |
@lszhu If "pdf.js v1.0 do not have the bug", then this bug is most likely caused by #6462. That PR resolved a problem with page size, but due to the lack of support for targetting specific pages via CSS, pages with different sizes are scaled to fit on a single page. The console will contain a warning when the page sizes are incorrect. Perhaps we should not try to unify the page size when we detect that the PDF pages have different page sizes? The relevant ode is here: Lines 1107 to 1133 in f06aa6a
If I prevent the stylesheet from being inserted, the images are not rescaled, but three pages are printed, which is also incorrect (if you want to test it yourself, type The best way to get rid of this bug is to use named pages (as you can see in the comments in our source code), but Chrome doesn't support that yet. |
Shall be addressed by #7677 |
I have a pdf file which has some pages with different page size/format (A4/letter/B5 pictures). When I'm printing it in pdf viewer in chrome, I find each page size/format will be change to the the first page size/format. This will squeeze or stretch the page (pictures).
OS: windows 7 x64
chrome v44/v45 x64/x86
The text was updated successfully, but these errors were encountered: