Skip to content
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

First and Third Page Blank - Foxit Loads PDF Properly #11287

Closed
speedplane opened this issue Oct 30, 2019 · 3 comments · Fixed by #11296
Closed

First and Third Page Blank - Foxit Loads PDF Properly #11287

speedplane opened this issue Oct 30, 2019 · 3 comments · Fixed by #11296

Comments

@speedplane
Copy link

speedplane commented Oct 30, 2019

Attach PDF file here: REDACTED

Configuration:

Steps to reproduce the problem:

  1. Load the PDF

What is the expected behavior?
Foxit loads the first and third pages just fine.
REDACTED
What went wrong?
The first and third page of the PDF JS viewer is blank. I am willing to bet this PDF is corrupted in some way, but given that Foxit loads it fine, I would expect pdf.js to do the same.

@speedplane
Copy link
Author

Also note the following debug output:

PDF 110dd61fd57444010b1ab5ff38782f0f [1.4 pdfeTeX-1.21a / TeX] (PDF.js: 2.4.88)
app.js:1111 PDF 38e80603b6dab5e99417b4a1ba05a66e [1.3 PyPDF2 / -] (PDF.js: 2.4.88)
util.js:329 Warning: getOperatorList - ignoring errors during "GetOperatorList: page 0" task: "FormatError: unrecognized colorspace CS0".
util.js:329 Warning: getOperatorList - ignoring errors during "GetOperatorList: page 2" task: "FormatError: unrecognized colorspace CS0".

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Oct 30, 2019

The first and third page of the PDF JS viewer is blank.

This can be reproduced in Adobe Reader (i.e. the PDF reference implementation) as well, which is usually a very good indication that the PDF document is severely corrupt.

Looking very briefly at the PDF document, it's indeed corrupt since the /Resources dictionary contains the following nonsensical entry:

/ColorSpace <<
/CS0 null
>>

@speedplane
Copy link
Author

Thank you for fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants