You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jason (JIRA)" <ji...@apache.org> on 2019/04/26 19:30:00 UTC

[jira] [Updated] (PDFBOX-4527) poor conversion quality on this PDF when dpi is not high enough

     [ https://issues.apache.org/jira/browse/PDFBOX-4527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason updated PDFBOX-4527:
--------------------------
    Attachment: doc_with_conversion_issue.pdf

> poor conversion quality on this PDF when dpi is not high enough
> ---------------------------------------------------------------
>
>                 Key: PDFBOX-4527
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4527
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.15
>         Environment: mac, linux
>            Reporter: Jason
>            Priority: Major
>         Attachments: doc_with_conversion_issue.pdf
>
>
> I have attached a PDF. We try to convert it to image in PNG format. But the conversion quality is bad for this particular document. I have attached the conversion result of using 90 dpi and 400 dpi. The quality is good when dpi is high, e.g. 400. But bad for 90 dpi which normally generates good conversion quality for us for other documents.
> Could you please help us take a look? Thanks!
> Some sample code:
> {code:java}
> private static BufferedImage render(PDDocument pdfPage) throws IOException {
> PDFRenderer renderer = new PDFRenderer(pdfPage);
> BufferedImage image = renderer.renderImageWithDPI(0, 90, ImageType.RGB); // change dpi to very high can generate good result
> try {
> pdfPage.close();
> } catch (IOException ignored) {
> }
> return image;
> }
> {code}
> {color:#000080} {color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org