[
https://issues.apache.org/jira/browse/PDFBOX-2908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr closed PDFBOX-2908.
-----------------------------------
Resolution: Won't Fix
We're only fixing small bugs in the 1.8.* version, not making optimizations.
The 2.0 does have some possible improvements related to streams and temporary
files. Hint: in the 1.8 versions, if possible, always try to read from a file
and not from a FileInputStream.
> PDFTextStripper.writeText is slow
> ---------------------------------
>
> Key: PDFBOX-2908
> URL: https://issues.apache.org/jira/browse/PDFBOX-2908
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 1.8.9, 1.8.10
> Environment: Mac OS X 10.10.4
> java version "1.8.0_31"
> Reporter: V
> Labels: pdfbox
> Fix For: 2.0.0
>
>
> I inserted raw time reporting functions before and after
> PDFTextStripper.writeText, it looks like it takes quite long to writeText to
> a StringWriter (84045ms for a ~1M pdf file).
> It looks like a 1.8.x issues (I can reproduce on 1.8.9 and 1.8.10, didn't
> test on other versions yet). When I switched to 2.0.0-SNAPSHOT, and the time
> improved dramatically to 532ms using the same code and for the same pdf file.
> What I changed in code was only one import to accommodate PDFTextStripper's
> package change in 2.0.0.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]