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

NumberFormatException in bfSearchForObjStreams

    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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: