You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/12/18 10:50:46 UTC
[jira] [Commented] (PDFBOX-3171) Image extraction is slow
[ https://issues.apache.org/jira/browse/PDFBOX-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15063770#comment-15063770 ]
Tilman Hausherr commented on PDFBOX-3171:
-----------------------------------------
Are you using JDK8?
https://blog.idrsolutions.com/2011/03/java-images-5-tips-for-java-imageio-image-performance/
https://bugs.openjdk.java.net/browse/JDK-8041125
> Image extraction is slow
> ------------------------
>
> Key: PDFBOX-3171
> URL: https://issues.apache.org/jira/browse/PDFBOX-3171
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: Igor
> Attachments: MANUAL000039763.pdf, sampling results.png
>
>
> Hello,
> Image extraction in 2.0 is very slow. If I use 1.8.10:
> > java -jar pdfbox-app-1.8.10.jar ExtractImages MANUAL000039763.pdf
> It can extract all images in just 3-4 seconds.
> If I use 2.0-rc2 or the latest snapshot:
> > java -jar pdfbox-app-2.0.0-20151217.170042-1863.jar ExtractImages MANUAL000039763.pdf
> It takes 55-60 seconds to do the same. I profiled it with Visual VM and it showed that most of the time is spent on those two methods:
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.toRGBImageAWT()
> java.awt.image.ColorConvertOp.filter() 42.9% (22,578 msec)
> org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.loadICCProfile()
> java.awt.Color.<init>() 33.9% (19,444 msec)
> Is there any way to make it faster? How does it work so fast in 1.8.10?
> Sample file is attached.
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org