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

Trailer validation fails when Pages cannot be found in the current trailer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.21
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
      None

      Description

      I am seeing an issue where multiple trailers exist for a PDF, but the trailer that is being found does not contain a Pages object in the Root.

      The PDF does have a trailer that can be read with Pages in the root but the brute force approach needs to be taken when parsing is lenient.

      This issue can be seen as being resolved in pdf.js here

      https://github.com/mozilla/pdf.js/commit/56e3648b656bed1bf4ff52aa3cd70e8a8e53b56f

      And sample pdf:

      https://github.com/mozilla/pdf.js/blob/master/test/pdfs/issue9418.pdf

        Attachments

        1. issue9418.pdf
          148 kB
          Cody Wayne Holmes

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cholmes5324 Cody Wayne Holmes
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: