tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben McCann (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TIKA-1753) Improper concatenation
Date Fri, 25 Sep 2015 02:47:04 GMT

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

Ben McCann edited comment on TIKA-1753 at 9/25/15 2:46 AM:
-----------------------------------------------------------

Here's a sample file that Tika parses incorrectly. It has "CAbenmccann@gmail.com" in the output
when "CA" and "benmccann@gmail.com" are actually on different lines in the sample pdf


was (Author: chengas123):
Here's a sample file that Tika parses incorrectly. It has "CAbenmccann@gmail.com" in the output
when "CA" and "benmccann@gmail.com" are actually on different lines

> Improper concatenation
> ----------------------
>
>                 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)

Mime
View raw message