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

Catch exceptions per page in PDFParser

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0, 1.13
    • Component/s: None
    • Labels:
      None

      Description

      In a discussion with Tilman Hausherr 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

            • Assignee:
              tallison@apache.org Tim Allison
              Reporter:
              tallison@apache.org Tim Allison
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: