We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF to png image conversion

Hi Team,


I am trying to convert a PDF file to image
But every time i am getting a blank image.

Following is the code i am using from examples

com.aspose.pdf.facades.PdfConverter converter = new com.aspose.pdf.facades.PdfConverter();
converter.bindPdf(Environment.getExternalStorageDirectory().getAbsolutePath()+"/VignetteGuichet-1bis_30.pdf");

//Set start and end pages
converter.setStartPage(1);
converter.setEndPage(1);

//Initialize conversion process
converter.doConvert();

//Convert pages to images
String suffix = “.png”;
int imageCount = 1;
while (converter.hasNextImage())
{
converter.getNextImage(Environment.getExternalStorageDirectory().getAbsolutePath()+"/"+imageCount + suffix);
imageCount++;


}


Attaching the PDF file I used to convert.

Please help in resolving this issue

Hi phani,


Thanks for your inquiry. We are looking into it and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi Tilal,


Any information on this?

Thanks
Phani

Hi Phani,


We are sorry for the inconvenience. I have tested the scenario and noticed the blank image issue, so logged a ticket PDFANDROID-430 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

Best Regards,

The issues you have found earlier (filed as PDFANDROID-430) have been fixed in Aspose.Pdf for Android 16.12.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.