You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2011/02/17 08:55:24 UTC
[jira] Issue Comment Edited: (PDFBOX-956) Poor text extraction
performance in PDFTextStripper.java
[ https://issues.apache.org/jira/browse/PDFBOX-956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995708#comment-12995708 ]
Andreas Lehmkühler edited comment on PDFBOX-956 at 2/17/11 7:54 AM:
--------------------------------------------------------------------
The minimum requirements for PDFBox are java 1.5 and I guess that won't be changed in a near future.
As I introduced the issue I'll take care of this.
was (Author: lehmi):
The minimum requirements for PDFBox are java 1.5 and I guess that won't be changed in a near future.
I'll take care of this.
> Poor text extraction performance in PDFTextStripper.java
> --------------------------------------------------------
>
> Key: PDFBOX-956
> URL: https://issues.apache.org/jira/browse/PDFBOX-956
> Project: PDFBox
> Issue Type: Improvement
> Components: Text extraction
> Affects Versions: 1.4.0
> Reporter: Kevin Jackson
> Assignee: Andreas Lehmkühler
> Fix For: 1.5.0
>
> Attachments: PDFBOX956-c4ce2fcd_69.txt, PDFTextStripper.java.patch, c4ce2fcd_69.pdf
>
>
> The worst case performance of the suppressDuplicateOverlappingText logic in processTextPosition is O(n^2).
> The patch is to use a TreeMap to achieve O(N log N) performance.
> The example PDF took over 2 hours to extract the text before this patch and less than 10 minute after.
> BTW: The extracted text is also quite different compared to Adobe Reader. Not sure which is correct but for this document it doesn't matter.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira