Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

trouble decoding PDF with space at end of line #22

Open
kevinburke opened this issue Feb 23, 2018 · 0 comments
Open

trouble decoding PDF with space at end of line #22

kevinburke opened this issue Feb 23, 2018 · 0 comments

Comments

@kevinburke
Copy link

kevinburke commented Feb 23, 2018

I received a PDF from clippercard.com that has "%PDF-1.3 " as the first line - note the space character after the "3". This causes rsc.io/pdf to fail to parse the PDF file. The PDF file in question has a number of space characters at the end of lines which cause the PDF library to alternately return these errors, depending on which space characters you fix:

not a PDF file: invalid header
malformed PDF: cross-reference table not found: ref
malformed PDF file: missing final startxref

Chrome, Mozilla Firefox and Preview.app have no problem displaying the PDF in question.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant