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 2019/11/29 19:38:00 UTC

[jira] [Comment Edited] (PDFBOX-4698) Images are not rendering correctly when pdf is converted to image.

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

Tilman Hausherr edited comment on PDFBOX-4698 at 11/29/19 7:37 PM:
-------------------------------------------------------------------

If you want a higher resolution then do {{pr.renderImage (0, 4f)}}. See the javadoc for why.

The one from PDFBox is of good quality if you use the latest java 8, or at least 192. Early java 8 versions were pretty bad. If you can't update, then you'll have to live with the bugs. (And the security holes that may put your client at risk)

To see the difference, run PDFDebugger on your "old" machine, and on a machine with a newer jdk8 version, or with Amazon Corretto 8.


was (Author: tilman):
If you want a higher resolution then do {{pr.renderImage (0, 4f)}}. See the javadoc for why.

The one from PDFBox is of good quality if you use the latest java 8, or at least 192. Early java 8 versions were pretty bad. If you can't update, then you'll have to live with the bugs.

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