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

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

LOL...TIKA-2169 wasn't the problem.  I was bitten, yet again, by TIKA-2096.

{noformat}
        PDFParserConfig config = new PDFParserConfig();
        config.setExtractInlineImages(true);
        ParseContext pc = new ParseContext();
        pc.set(PDFParserConfig.class, config);
        pc.set(Parser.class, new AutoDetectParser()); //DO NOT FORGET!!!
        System.out.println(getXML("pdf-with-jp2-images.pdf", pc).xml);
{noformat}

> 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