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] [Created] (TIKA-1753) Improper concatenation
Date Fri, 25 Sep 2015 02:35:04 GMT
Ben McCann created TIKA-1753:

             Summary: Improper concatenation
                 Key: TIKA-1753
                 URL: https://issues.apache.org/jira/browse/TIKA-1753
             Project: Tika
          Issue Type: Bug
          Components: parser
            Reporter: Ben McCann

The code below will output text for a pdf. Words that are on different lines are concatenated

    CaptureXMLHandler handler = new CaptureXMLHandler();
    byte[] bytes = IOUtils.toByteArray(new FileInputStream(new File("resume.pdf")));
    new AutoDetectParser().parse(new ByteArrayInputStream(bytes), handler, new Metadata(),
new ParseContext());

This message was sent by Atlassian JIRA

View raw message