You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Ryan Kimber (JIRA)" <ji...@apache.org> on 2017/02/17 23:25:44 UTC
[jira] [Updated] (PDFBOX-3689) PDFBox Hanging when Rendering PDF
[ https://issues.apache.org/jira/browse/PDFBOX-3689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Kimber updated PDFBOX-3689:
--------------------------------
Description:
On my Mac, there's no problem, but 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).
Similar to https://issues.apache.org/jira/browse/PDFBOX-3562 I'm using the java startup parameter: -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider
This is the call that hangs:
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);
}
was:
On my Mac, there's no problem, but 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).
Similar to https://issues.apache.org/jira/browse/PDFBOX-3562 I'm using the java startup -D parameter for KcmsServiceProvider.
> 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
>
>
> On my Mac, there's no problem, but 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).
> Similar to https://issues.apache.org/jira/browse/PDFBOX-3562 I'm using the java startup parameter: -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider
> This is the call that hangs:
> 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);
> }
--
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