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 2017/11/07 19:03:00 UTC

[jira] [Comment Edited] (PDFBOX-3988) Performance issue when rendering first page of PDF

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

Tilman Hausherr edited comment on PDFBOX-3988 at 11/7/17 7:02 PM:
------------------------------------------------------------------

You're right and I thought the same this morning. A one-time only message in PDDeviceRGB which is a singleton. And set the property in the command line applications.

I need to think a bit about that before making the change so that it doesn't get annoying.


was (Author: tilman):
You're right and I thought the same this morning. A one-time only message in PDDeviceRGB which is a singleton. And set the property in the command line applications.

I need to think a but about that so that it doesn't get annoying.

> Performance issue when rendering first page of PDF
> --------------------------------------------------
>
>                 Key: PDFBOX-3988
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3988
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 2.0.7
>            Reporter: Maciej Matecki
>         Attachments: calls.png
>
>
> Let say that you want to generate PNG for all pages in PDF.
> The generation of the first page is really slow, the second one is quite fast.
> For example test PDF contains two same PDF pages. 
> First page renders in: ~2000ms
> Second one: ~220 ms
> It looks like for the first page (inv.0) there's 359 ms overhead just for creating the font.
> [^calls.png]
> Tried to use other library to perform the same operation with the same pdf file and I was able to retrieve BufferedImage of the first (slower) page in ~750 ms.
> For the second page the result was almost the same like for the PDFBox.
> It looks like there's the place to improve performance when starting rendering the PDF page. 
> Or do you have any advices how to improve performance in the example project?
> Test project: https://github.com/mmatecki/pdfboxperformance



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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