You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2014/05/12 17:19:15 UTC

[jira] [Closed] (TIKA-1205) Allow PDFParser to fallback to other parser if there is an exception

     [ https://issues.apache.org/jira/browse/TIKA-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Allison closed TIKA-1205.
-----------------------------

    Resolution: Won't Fix

I've decided that the complication in code is not worth the benefit for me.  If there is need in the community, please reopen.

> Allow PDFParser to fallback to other parser if there is an exception
> --------------------------------------------------------------------
>
>                 Key: TIKA-1205
>                 URL: https://issues.apache.org/jira/browse/TIKA-1205
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>            Reporter: Tim Allison
>            Assignee: Tim Allison
>            Priority: Trivial
>             Fix For: 1.6
>
>
> With TIKA-1201, there is now an option to use PDFBox's NonSequentialPDFParser instead of the traditional parser for parsing PDF files.  Following the description in PDFBOX-1199, it would be useful to allow fallback to the classic parser if NonSequentialPDFParser throws an IOException.  For the sake of symmetry, I propose a boolean useParserFallbackOnException parameter.  If this parameter is true, and if Tika's PDFParser is using the classic parser, Tika will fallback to the NonSequentialPDFParser if there is an IOException; if this parameter is true and if Tika's PDFParser is using the NonSequentialPDFParser it will fallback to the classic parser if there is an IOException.
> Many thanks to Hong-Thai for championing the addition of the added NonSequentialPDFParser capability in TIKA-1201, and many thanks to Timo for PDFBox's NonSequentialPDFParser (PDFBOX-1199)!



--
This message was sent by Atlassian JIRA
(v6.2#6252)