[
https://issues.apache.org/jira/browse/PDFBOX-2991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960240#comment-14960240
]
Ben McCann commented on PDFBOX-2991:
------------------------------------
Yes, I'm running 1.8 in production right now, which is where I discovered this
issue. However, it turned out that the original sample-resume.pdf would only
reproduce the issue in 1.8 and not 2.0. I updated the attachment with a
slightly tweaked doc that reproduces the errors I'm seeing with both 1.8 and
2.0.
> Improper word concatenation when extracting pdf
> -----------------------------------------------
>
> Key: PDFBOX-2991
> URL: https://issues.apache.org/jira/browse/PDFBOX-2991
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 2.0.0
> 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
> PDDocument pdDoc = PDDocument.load(new File("sample-resume.pdf"));
> StringWriter writer = new StringWriter();
> new PDFTextStripper().writeText(pdDoc, writer);
> pdDoc.close();
> System.out.println(writer.toString());
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]