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

Tilman Hausherr commented on PDFBOX-4090:
-----------------------------------------

Your code is fine. Hard to tell what's going on... I tried to display with 1.6 
and it does look darker than with 2.0 or 1.8. But I can't say for sure that 1.6 
is the correct one. Maybe it has to do with different strategies for 
interpolation. Both of your graphics files look blurry.

I tried printing with 2.0 and with Adobe Reader... the output with Adobe Reader 
is slightly better. Maybe because Adobe lets the printer do the font rendering, 
while PDFBox does it itself, so it passes vector graphics. But that's just a 
guess.

Btw, if this report is about a real person, and if you didn't ask for 
permission, then you should delete it. Your file is very simple, one could 
generate it with the TextToPDF utility.

> 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: COMPLETE REPORT.pdf, 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]

Reply via email to