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

NumberFormatException in bfSearchForObjStreams

    XMLWordPrintableJSON

Details

    Description

      java.lang.NumberFormatException: For input string: "245
      89"
          java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
          java.lang.Long.parseLong(Long.java:589)
          java.lang.Long.parseLong(Long.java:631)
          org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjStreams(COSParser.java:1766)
          org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjects(COSParser.java:1529)
          org.apache.pdfbox.pdfparser.COSParser.getBFCOSObjectOffsets(COSParser.java:1445)
          org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:1905)
      

      This worked in 2.0.7. The exception happens with only 2 files from the tests by Tim.

      Attachments

        1. EUWO6SQS5TM4VGOMRD3FLXZHU35V2CP2.pdf
          1021 kB
          Tilman Hausherr

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: