[
https://issues.apache.org/jira/browse/PDFBOX-3689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-3689:
------------------------------------
Description:
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 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}
was:
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}
> 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 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]