Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2455

NonSequentialParser does not tolerate missing %%EOF markers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.7, 2.0.0
    • 1.8.8, 2.0.0
    • Parsing
    • None

    Description

      The NonSequentialParser throws an exception when parsing a file with a missing or corrupted %%EOF marker. All PDF-viewers I tried however handle this kind of documents without problems.

      The attached patch makes the parser ignore missing %%EOF when in lenient mode. I cannot attach the original file presenting this problem, since it is a bank statement, but I have attached a small document with the same issue that I have created for testing.

      Attachments

        1. corrupted_eof.pdf
          10 kB
          Michele Balistreri
        2. NonSequentialPDFParser_NoEOF.patch
          0.7 kB
          Michele Balistreri

        Activity

          People

            lehmi Andreas Lehmkühler
            briksoftware Michele Balistreri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: