[
https://issues.apache.org/jira/browse/PDFBOX-3689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15873037#comment-15873037
]
Tilman Hausherr commented on PDFBOX-3689:
-----------------------------------------
I'm able to render the file on windows with the trunk and with 2.0.4. Your file
does not have shadings like PDFBOX-3562 so it can't be the same problem.
Does it happen with any file in docker? Is it possible to get a stack trace to
see what it is doing? Does it happen with the first page or with another?
> PDFBox Hanging when Rendering PDF
> ---------------------------------
>
> Key: PDFBOX-3689
> URL: https://issues.apache.org/jira/browse/PDFBOX-3689
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.4
> Reporter: Ryan Kimber
> Attachments: troubled-pdf.pdf
>
>
> I'm trying to render the attached file in a Docker container, using the
> oracle-java-8 image, rendering pages with pdfRenderer.renderImageWithDPI is
> hanging indefinitely (or at least, for a very long time).
> I'm experiencing the same issue as
> https://issues.apache.org/jira/browse/PDFBOX-3562 , and likewise, I'm using
> the java startup parameter:
> -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider.
> Interestingly, when this code and this PDF run in the debugger on my Mac,
> there's no problem.
> This is the call that hangs:
> {code:java}
> private BufferedImage getBufferedImageOfPage(int pageIndex, int dpi,
> PDFRenderer imageRenderer) throws IOException
> {
> if(dpi > 600) dpi = 600;
> if(dpi < 36) dpi = 36;
> return imageRenderer.renderImageWithDPI(pageIndex, dpi);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]