[
https://issues.apache.org/jira/browse/PDFBOX-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15560977#comment-15560977
]
Vasiliy Sadokhin commented on PDFBOX-3523:
------------------------------------------
I managed to test different PDF files via console using command you put in
previous comment and I saw smaller size and images quality is fine with us. On
some PDFs I got errors:
"Oct 10, 2016 8:58:26 AM org.apache.pdfbox.contentstream.PDFStreamEngine
operatorException
SEVERE: Cannot read JBIG2 image: jbig2-imageio is not installed"
and blank page images. I downloaded JBIG2 library and put it to classpath but
it didn't solve the problem.
I wasn't able to get smaller images via our web application after replacing
PDFBox from 2.0.3 to 2.0.4 build 46. It behaves exactly the same way like we
have 2.0.3 packed inside - speed is slow and size is big, actually the result
image size didn't change at all. Could you, please, look at our PdfUtils class
one more time and let me know whether it's our code issue?
> PDFBox renders images 5 times slower and bigger
> -----------------------------------------------
>
> Key: PDFBOX-3523
> URL: https://issues.apache.org/jira/browse/PDFBOX-3523
> Project: PDFBox
> Issue Type: Improvement
> Affects Versions: 2.0.3
> Environment: Java version 1.8
> Ubuntu Linux&Windows 10
> Reporter: Vasiliy Sadokhin
> Labels: performance
> Attachments: OldPdfUtils.java,
> PDFBOX-2302-mori-cvpr01.pdf-7-with-change.png,
> PDFBOX-2302-mori-cvpr01.pdf-7.png, PdfUtils.java, old_test.png,
> sigice9_172.Adobe.pdf-1-with-change.png, sigice9_172.Adobe.pdf-1.png,
> test.pdf, test.png
>
>
> We recently migrated PDFBox from 1.8.13 to 2.0.3. We found that it becomes 5
> times slower to get a PDF page image and the image is 5 times bigger than
> PDFBox 1.8 did. For example, It took about 200ms and now it takes more than 1
> second, the result size was less 200Kb and it's 1Mb now.
> We specified BufferedImage.TYPE_3BYTE_BGR for PDFBox 1.8 and we have no way
> to do it with 2.x. It might be a reason.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]