You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Ben McCann (JIRA)" <ji...@apache.org> on 2015/09/25 17:58:04 UTC

[jira] [Comment Edited] (TIKA-1753) Improper word concatenation when extracting pdf

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

Ben McCann edited comment on TIKA-1753 at 9/25/15 3:57 PM:
-----------------------------------------------------------

After a bit more investigation it turns out that this issue would be fixed by [TIKA-1285](https://issues.apache.org/jira/browse/TIKA-1285) (upgrade to pdfbox 2.0)


was (Author: chengas123):
After a bit more investigation it turns out that this issue would be fixed by https://issues.apache.org/jira/browse/TIKA-1285 (upgrade to pdfbox 2.0)

> Improper word concatenation when extracting pdf
> -----------------------------------------------
>
>                 Key: TIKA-1753
>                 URL: https://issues.apache.org/jira/browse/TIKA-1753
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>            Reporter: Ben McCann
>         Attachments: sample-resume.pdf
>
>
> The code below will output text for a pdf. Words that are on different lines are concatenated together
>     CaptureXMLHandler handler = new CaptureXMLHandler();
>     byte[] bytes = IOUtils.toByteArray(new FileInputStream(new File("resume.pdf")));
>     new PDFParser().parse(new ByteArrayInputStream(bytes), handler, new Metadata(), new ParseContext());
>     System.out.println(handler.toString());



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