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

NonSequentialParser does not tolerate missing %%EOF markers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 2.0.0
    • Fix Version/s: 1.8.8, 2.0.0
    • Component/s: Parsing
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: