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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3
    • 2.0.4, 3.0.0 PDFBox
    • Parsing
    • None
    • 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

        1. ApproveIt 2 page data sheet.pdf
          406 kB
          Seva Alekseyev

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: