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

Tilman Hausherr commented on PDFBOX-4787:
-----------------------------------------

I'm confused - if PDFToImage freezes when run alone then something is really 
rotten on that server. You'll have to investigate this the hard way, i.e. with 
a java debugger to find out where it hangs in the PDFBox sources.

Other things to check first:
- does it freeze when opening, or when rendering?
- disable logging (your file does produce log output, most files don't)
- try running PDFToImage with a small dpi (e.g. 10)
- make sure you have only one pdfbox version in your classpath
- increase -Xmx value
- remove "sun.java2d.cmm", it is not needed for 1.7 (I think it does nothing, 
but I may be wrong)
- reinstall java


> PDFRenderer freezes
> -------------------
>
>                 Key: PDFBOX-4787
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4787
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.4, 2.0.19
>            Reporter: Rodion
>            Priority: Major
>         Attachments: 158201027645.pdf, screenshot-1.png
>
>
> Hello, I try render pfd to jpeg with PDFRenderer:
> PDDocument document = PDDocument.load(is); 
> PDFRenderer pdfRenderer = new PDFRenderer(document);
>  
> but in line image = pdfRenderer.renderImageWithDPI(page, RESOLUTION_DEFAULT, 
> ImageType.RGB); all freezes
>  
> with other files this code working, but with one no. On other pc all files 
> rendered. I try use next step:
> System.setProperty("sun.java2d.cmm", 
> "sun.java2d.cmm.kcms.KcmsServiceProvider");
> System.setProperty("java.awt.headless", "true");
> but still don't work.Please, help me!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to