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

Terry Clarke commented on PDFBOX-4698:
--------------------------------------

This is an example of the code : 

PDDocument pd = PDDocument.load("myPDF.pdf", 
MemoryUsageSetting.setupTempFileOnly());
PDFRenderer pr = new PDFRenderer (pd);
BufferedImage img = pr.renderImage (0, 1f);

I have 2 Renderers and the one on the pdfbox does not seem to be very good 
quality. is there away of setting the quality higher. I would prefer to use the 
pdfbox one as the other is a native OS renderer. 

I am using the lowest java 8 (due to clients no able to update!!!!) and pdfbox 
version 2.0.17. I must admit this code does look to easy!! There must be 
something I am missing.

> Images are not rendering correctly when pdf is converted to image.
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-4698
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4698
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.17
>         Environment: Windows 7, 10
>            Reporter: Terry Clarke
>            Priority: Major
>         Attachments: JavaFX CSS Reference Guide (2).pdf, rendered image.PNG
>
>
> When trying to render a PDF page to an image, the image becomes distorted and 
> the colors are not correct see attachment. I have attached the PDF and a copy 
> of the image which was rendered. Try rendering page 7 of the PDF.



--
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