tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-1948) Catch exceptions per page in PDFParser
Date Wed, 13 Apr 2016 01:49:25 GMT

    [ https://issues.apache.org/jira/browse/TIKA-1948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238395#comment-15238395
] 

Hudson commented on TIKA-1948:
------------------------------

SUCCESS: Integrated in tika-2.x #81 (See [https://builds.apache.org/job/tika-2.x/81/])
TIKA-1948 handle IOExceptions per page in PDFParser (tallison: rev 2e2b96a1b940d6e4de649931b337ab290e8504e2)
* tika-parser-modules/tika-parser-pdf-module/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java
* CHANGES.txt
* tika-parser-modules/tika-parser-pdf-module/src/main/resources/org/apache/tika/parser/pdf/PDFParser.properties
* tika-core/src/main/java/org/apache/tika/metadata/TikaCoreProperties.java
* tika-test-resources/src/test/resources/test-documents/testPDF_bad_page_303226.pdf
* tika-parser-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/PDFParserConfig.java
* tika-parser-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/PDF2XHTML.java


> Catch exceptions per page in PDFParser
> --------------------------------------
>
>                 Key: TIKA-1948
>                 URL: https://issues.apache.org/jira/browse/TIKA-1948
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Tim Allison
>            Assignee: Tim Allison
>            Priority: Minor
>             Fix For: 2.0, 1.13
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message