-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
The bottom part of some images are rendered incorrectly: "Warning: JPX error: Out of packets. Trying to recover" #4358
Comments
From the console:
|
Duplicate of #3561, I guess. |
An update: the colours are now fixed, courtesy of PR #4397, but there are still slight issues with some of the images. As can be seen in the highlighted area in this screenshot, they are not rendered completely correct: |
Thank you guys for update! |
[Updated the title to better reflect the remaining issue.] |
Since the file referenced above no longer appears to be available, the following is another file that has the same error: http://www.yotsuyaotsuka.com/kyozai/image/4th_grade/01_04.pdf. |
Here's a copy of the original document: |
i dug into this a bit. what i figured out is that this is caused by the size of that last tile. getBlocksDimensions does use "15" Changing this value affects of course other stuff as well, but makes the colorful pixels go away. The correct solution seems to find the right place where the coordinates need to be limited for decoding. |
Fixed by PR #5426. |
PDFJS preview renders PDF with diffrent color rather than any other desktop application.
Reproduces on any browser.
Use this PDF file https://www.dropbox.com/s/q6b57x1vs72q7lx/748958.pdf with demo viewer to check http://mozilla.github.io/pdf.js/web/viewer.html
The text was updated successfully, but these errors were encountered: