Skip to content

PyPDF2.errors.PdfReadError: EOF marker not found #134

Description

@alisufian

The following script originally hanged, but with PyPDF2==2.4.2 we get PdfReadError: EOF marker not found.

MCVE: PDF + Code

This file is 298MB with 21 pages.

from PyPDF2 import PdfReader

reader = PdfReader("01-006 2009-04-30 FRP NON CONFIDENTIAL PAP FILING.PDF")

Traceback

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/moose/Github/py-pdf/PyPDF2/PyPDF2/_reader.py", line 267, in __init__
    self.read(stream)
  File "/home/moose/Github/py-pdf/PyPDF2/PyPDF2/_reader.py", line 1218, in read
    raise PdfReadError("EOF marker not found")
PyPDF2.errors.PdfReadError: EOF marker not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    Has MCVEA minimal, complete and verifiable example helps a lot to debug / understand feature requestsPdfReaderThe PdfReader component is affectedis-robustness-issueFrom a users perspective, this is about robustness

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions