You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Volker Ullmann (Jira)" <ji...@apache.org> on 2021/02/02 14:53:00 UTC

[jira] [Commented] (PDFBOX-5091) Performance issue when saving PDF to image after upgrading from PDFBox 2.0.20 to 2.0.21

    [ https://issues.apache.org/jira/browse/PDFBOX-5091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277172#comment-17277172 ] 

Volker Ullmann commented on PDFBOX-5091:
----------------------------------------

The docs say, the _image downscaling optimization threshold_ will only be taken into account if the rendering hints _bicubic_ and _quality_ are set.
As mentioned above we don't set any rendering hints, so I suppose defaults will be used and the threshold value is ignored.
Furthermore I did some test runs playing with rendering settings (speed versus quality) and the only remarkable difference is the quality of the resulting image. In fact the average processing time is nearly the same for _quality_ (bicubic interpolation, antialiased rendering, highest render quality) as for _speed_ (Nearest Neighbor interpolation, nonantialiased rendering, fastest rendering methods).
Seems that the rendering hints and image downscaling optimization threshold won't help me.
Do you have any other ideas?

> Performance issue when saving PDF to image after upgrading from PDFBox 2.0.20 to 2.0.21
> ---------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5091
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5091
>             Project: PDFBox
>          Issue Type: Bug
>         Environment: JDK 8 on Windows10
>            Reporter: Volker Ullmann
>            Priority: Minor
>         Attachments: single_page.pdf
>
>
> We use PDFBox to save the first page of a PDF as an image to provide a preview of the document. These PDFs can be relatively complex as they may contain ten thousands of objects, especially map data. The results are still fine, but when we upgraded from 2.0.20 to 2.0.21 we had a notable performance decrease. Saving the first page of the attached sample document now takes nearly 20 sec on my developer machine, compared to 4 sec with 2.0.20.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org