[
https://issues.apache.org/jira/browse/PDFBOX-4090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16347683#comment-16347683
]
Tilman Hausherr commented on PDFBOX-4090:
-----------------------------------------
I'm not sure it is an issue at all, I never get the blurry rendering you get.
What I did get is that the 1.6 rendering was darker, but 1.6 may have been
using a different strategy.
I tried with 2.0 and the 100% rendering is kindof too small, but at 200% it
looks nice. Your code has 350 dpi so that is about 500%. Did you reduce it for
the screenshot?
Did you create the file yourself or did you receive it from a client? If you
created it yourself, why not use Courier Bold instead of Courier?
> Converting PDF to Image Quality Issue
> -------------------------------------
>
> Key: PDFBOX-4090
> URL: https://issues.apache.org/jira/browse/PDFBOX-4090
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.8
> Reporter: Naga Gpr
> Priority: Major
> Attachments: pdfbox_1_0_6.PNG, pdfbox_2_0_8.PNG
>
>
> Dear Sir,
> Previously we have used PdfBox1.6.0 API to convert PDF to images.Now we have
> updated latest version PdfBox2.0.8 quality of image something mesh...
> PDFBox 1.6.0
> ---------------------
> List<PDPage> list = document.getDocumentCatalog().getAllPages();
> for (PDPage page : list)
> { BufferedImage image = page.convertToImage();
> listOfImages.add(image); }
> PDFBox2.0.8
> ---------------------
> ByteArrayInputStream bis = new ByteArrayInputStream(finalReportData);
> PDDocument document = PDDocument.load(bis);
> PDFRenderer pdfRenderer = new PDFRenderer(document);
>
> for (int page = 0; page < document.getNumberOfPages();
> ++page)
>
> { BufferedImage image =
> pdfRenderer.renderImageWithDPI(page, 350, ImageType.RGB);
> listOfImages.add(image); }
>
> Please find attached screens as well quality of image.Can you please help on
> this to increase quality of image asap.
> Thanks,
> -Naga
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]