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

IOException "Expected root dictionary, but got this: COSInt{971}" on a valid PDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3
    • 2.0.21, 3.0.0 PDFBox
    • Parsing
    • None
    • Windows 7 x64, JVM 1.8.0_101

    Description

      On the attached PDF document, which opens fine with Adobe Reader, the PDDocument.load() method throws the following error:

      java.io.IOException: Expected root dictionary, but got this: COSInt

      {971}

      at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:206)
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:252)
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:957)
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:913)
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:861)

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            sevaa Seva Alekseyev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: