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

java.io.IOException: Error: Expected an integer type, actual='f'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.8.4, 2.0.0
    • None
    • None
    • Windows XP

    Description

      This was mentioned in PDFBOX-490 with a different problem, and there were similar issues that were closed for failure to bring an example. The file can be found at http://www.lavasurfer.com/100akerpathology.pdf

      java.io.IOException: Error: Expected an integer type, actual='f'
      at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1640)
      at org.apache.pdfbox.pdfparser.BaseParser.readGenerationNumber(BaseParser.java:1612)
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parseXrefObjStream(NonSequentialPDFParser.java:459)
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.initialParse(NonSequentialPDFParser.java:359)
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parse(NonSequentialPDFParser.java:700)
      at org.apache.pdfbox.pdmodel.PDDocument.loadNonSeq(PDDocument.java:1254)
      at org.apache.pdfbox.pdmodel.PDDocument.loadNonSeq(PDDocument.java:1237)
      at pdfboxpageimageextraction.ExtractImages.doPdf(ExtractImages.java:83)
      at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:67)

      My call is
      document = PDDocument.loadNonSeq(new File(pdfFilename), null);

      Attachments

        1. 100akerpathology.pdf
          87 kB
          Tilman Hausherr

        Activity

          People

            lehmi Andreas Lehmkühler
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: