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 2018/01/31 16:48:00 UTC

[jira] [Commented] (PDFBOX-4090) Converting PDF to Image Quality Issue

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

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

Please attach the PDF or we can't help.

> Converting PDF to Image Quality Issue
> -------------------------------------
>
>                 Key: PDFBOX-4090
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4090
>             Project: PDFBox
>          Issue Type: Bug
>    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.0.6 API to convert PDF to images.Now we have updated latest version PdfBox2.0.8 quality of image something mesh...
> PDFBox 1.0.6
> ---------------------
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org