[
https://issues.apache.org/jira/browse/PDFBOX-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980698#action_12980698
]
Hesham commented on PDFBOX-588:
-------------------------------
@Andreas ... Did you notice how (PDFTextStripper) became very slow in PDFBox
version 1.4 ?
For example I have tested extracting the text from a 200 pages PDF (Page by
page) using the 2 versions (0.73) & (1.4) + Doing some little logic on the
extracted data, and the result was very different:
version 0.73: Took 4 seconds.
version 1.4: Took 1 minute, 22 seconds.
The results were better in version 1.4 a bit, but the time consumed was very
big. I was checking PDFTextStripper code now, and i think all the added code
was for paragraph separation and detection. So can this be optional in this
class with a property ? ... So if i want that level of fines in text extraction
i can set it through this property.
> Problem extracting text in newline characters
> ---------------------------------------------
>
> Key: PDFBOX-588
> URL: https://issues.apache.org/jira/browse/PDFBOX-588
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 0.8.0-incubator, 1.3.1, 1.4.0
> Environment: Win XP
> Reporter: Hesham
> Assignee: Andreas Lehmkühler
> Attachments: Enters-sample.pdf, PDFBOX588-Enters-sample.txt,
> PDFBOX588-Enters-sample1.png, PDFBOX588-Enters-sample1.png,
> PDFTextStripper.patch
>
>
> Hello ,
>
> I have a PDF file with 1 page only, when I try to extract its text using :
> String pageData = stripper.getText( pdfFile );
> It ignores some Enter characters between lines, so the last word in the line
> and the first word in the next line appear as 1 word without spaces between
> them !!
> While if I copy the PDF text manually from the PDF and paste it in a text
> editor, Enter characters appear after the same lines that caused the problem
> in PDFBox.
> Please check the attached file as a sample.
>
> Is there a way to fix this ?
>
> Best regards ,
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.