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/02/18 07:34:44 UTC

[jira] [Commented] (PDFBOX-3689) PDFBox Hanging when Rendering PDF

    [ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org