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

Error "Error getting header version: %PDF--33" on a valid document

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 3.0.0 PDFBox
    • Component/s: Parsing
    • Labels:
      None
    • Environment:
      Windows 7 x64, JVM 1.8.0_101

      Description

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

      java.io.IOException: Error getting header version: %PDF--33
      at org.apache.pdfbox.pdfparser.COSParser.parseHeader(COSParser.java:1935)
      at org.apache.pdfbox.pdfparser.COSParser.parsePDFHeader(COSParser.java:1853)
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:245)
      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

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              sevaa Seva Alekseyev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: