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

Error: Expected an integer type, actual='' -

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.7.0
    • Parsing
    • Windows XP

    Description

      Hello,

      The following exception is being thrown when attempting to parse a pdf document password protected using Adobe Acrobat 9 Pro:

      Apr 7, 2010 2:53:22 PM org.apache.pdfbox.filter.FlateFilter decode
      SEVERE: Stop reading corrupt stream
      07-Apr-2010 14:53:22.829: WARNING: java.io.IOException: Error: Expected an integer type, actual=''
      at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1275)
      at org.apache.pdfbox.pdfparser.PDFObjectStreamParser.parse(PDFObjectStreamParser.java:81)
      at org.apache.pdfbox.cos.COSDocument.dereferenceObjectStreams(COSDocument.java:449)
      at org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1100)
      at org.apache.pdfbox.pdmodel.PDDocument.decrypt(PDDocument.java:579)

      I have the following libraries:

      fontbox-1.1.0.jar
      pdfbox-1.1.0.jar

      Sample password protected file is attached.

      Would appreciate if someone can help.
      Thank you

      iglop

      Attachments

        1. sample_password_BRILD.pdf
          6 kB
          ik Glop
        2. gridBase 014.pdf
          19 kB
          Peter_Lenahan@ibi.com

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              ikglop ik Glop
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: