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

Tim Allison commented on TIKA-2175:
-----------------------------------

Wait, ok, this option is not working:

{noformat}
        PDFParserConfig config = new PDFParserConfig();
        config.setExtractInlineImages(true);
        ParseContext context = new ParseContext();
        context.set(PDFParserConfig.class, config);
        System.out.println(getXML("pdf-with-jp2-images.pdf", context).xml);
{noformat}

However, I am getting OCR content (with bad html tags!) with this:

{noformat}
        PDFParserConfig config = new PDFParserConfig();
        config.setExtractInlineImages(true);
        ParseContext context = new ParseContext();
        context.set(PDFParserConfig.class, config);
        debug(getRecursiveMetadata("pdf-with-jp2-images.pdf", context));
{noformat}

I _think_ this will be fixed once I get around to TIKA-2169.

> Enable extraction of inlined jp2/jpx from PDF
> ---------------------------------------------
>
>                 Key: TIKA-2175
>                 URL: https://issues.apache.org/jira/browse/TIKA-2175
>             Project: Tika
>          Issue Type: Bug
>            Reporter: Tim Allison
>         Attachments: pdf-with-jp2-images.pdf
>
>
> On TIKA-2174, [~mcaruanagalizia] reported that inline jp2 images in PDFs were 
> not being OCR'd.  TIKA-2174 added that file type to our tesseract parser, but 
> we our code in the PDFParser wasn't extracting the inline images as well.  
> Let's fix that. 



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

Reply via email to