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

new -- very slow processing on truncated PDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.8, 3.0.0 PDFBox
    • Parsing
    • None

    Description

      In the latest regression run with PDFBox's 2.x branch, we're now getting very slow processing on a truncated PDF with PDFBox app's ExtractText:

      http://162.242.228.174/docs/truncated_pdfs/commoncrawl2_likely_broken/7K/7KK53NK5PVKOUGDSQ4FK6542BNPC4SWB

      Turns out this is not an infinite loop. After 4.5 minutes, ExtractText eventually ended with:

      Exception in thread "main" java.io.IOException: Missing root object specification in trailer.
              at org.apache.pdfbox.pdfparser.COSParser.parseTrailerValuesDynamically(COSParser.java:2508)
              at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:193)
              at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:240)
              at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1012)
              at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:950)
              at org.apache.pdfbox.tools.ExtractText.startExtraction(ExtractText.java:192)
              at org.apache.pdfbox.tools.ExtractText.main(ExtractText.java:82)
              at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:60)
      

      .

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: