-
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 not rendering at all: getOperatorList - ignoring errors during task: RenderPageRequest #9252
Comments
This is what the content stream in that PDF file looks like, once decoded:
The |
@Snuffleupagus I see. So is it a matter of adding a sensible default when the value isn't numeric ( |
I don't completely understand this question, since if you're not providing three numeric arguments then the
It may eventually get fixed, but please keep in mind that this is a bug in a specific PDF file, rather than in the PDF.js library itself. And in this case, I'm not sure if there's an easy solution that won't slow down parsing of valid PDF files. |
I understand that it's not valid. My point was that other viewers seem to use I get that this is not part of the pdf standard and it's unfortunate that other viewers have implemented hacks to support malformed pdfs, which in turn leads such pdfs becoming popular in the wild. Still, I'm not in control of the pdf generation and I can't tell clients that their pdf is invalid and they have to submit a new one given that they can see the contents of said pdf with other viewers. |
This can be reproduced either with a simple app using PDFJS or a newer version of Firefox. I'll give details for the latter.
Attach (recommended) or Link to PDF file here:
not-shown-pdfjs.pdf
Configuration:
- Web browser and its version:
Firefox 57.0.1 (64-bit)
- Operating system and its version:
OS X EI Capitan 10.11.6
- PDF.js version:
1.9.583 (shipped with Firefox)
- Is a browser extension:
No (built into Firefox out of the box)
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
One page with the text 'Test' is rendered. Works with any other viewer I tried.
What went wrong? (add screenshot)
Nothing renders.
Related warning in the console:
The text was updated successfully, but these errors were encountered: