Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1948

Catch exceptions per page in PDFParser

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.13, 2.0.0
    • None
    • None

    Description

      In a discussion with tilman somewhere(???), I think he observed that we weren't doing a try/catch for each page. If there's an exception in an early page, it might still be possible to extract text from later pages in a problematic PDF.

      With very minimal modifications we could add a try/catch per page, store the caught exceptions, and then throw the first caught exception after the parse finishes.

      Attachments

        Activity

          People

            tallison Tim Allison
            tallison Tim Allison
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: