-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Attached PDF not able View (7th page) #10880
Comments
Sorry, I have uploaded file now |
I thought it is #6741 but the messages in the console are different. The two images in p7 and 8 are big, but not THAT big. |
Is there any solution for this yet? |
I'm not part of this project, I just hang around and look at problem PDFs. #6741 does not have a solution yet, obviously. And as I wrote, it isn't sure that this is the cause. |
Pages 7 and 8 contains corrupt JPEG images, which have SOF (Start of Frame) markers with completely incorrect scanLines parameters, see excerpt below:
As outlined in the JPEG specification, see https://www.w3.org/Graphics/JPEG/itu-t81.pdf#page=40, the scanLines value here is Trying to fix this will, most likely, require adding a fair bit of heuristics but is probably doable (although it probably won't be fast, since we'll have to parse the image twice in order to recover). |
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
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: