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

Jason commented on PDFBOX-4527:
-------------------------------

Thanks [~tilman], I will follow on the other issue. 

> 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
>          Components: Rendering
>    Affects Versions: 2.0.15
>         Environment: mac, linux
>            Reporter: Jason
>            Priority: Major
>         Attachments: 400_dpi.png, 90_dpi.png, 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to