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

Naga Gpr updated PDFBOX-4090:
-----------------------------
    Attachment: pdfbox_1_0_6.PNG
                pdfbox_2_0_8.PNG

> 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 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