Handling of incomplete EOF markers #2853
Labels
is-robustness-issue
From a users perspective, this is about robustness
PdfReader
The PdfReader component is affected
I just stumbled upon a PDF sent by e-mail where the final
OF
of the EOF marker has been missing. Apparently, pdf.js and Evince are able to display it correctly, while pypdf fails.Environment
Which environment were you using when you encountered the problem?
Note: The version is the latest main code.
Code + PDF
This is a minimal, complete example that shows the issue:
For the file, just take any valid PDF file and remove the final
OF
characters of%%EOF
.Traceback
This is the complete traceback I see:
The text was updated successfully, but these errors were encountered: