Converting PDF File to PNG


I am Converting a particular PDF File into PNG format page by page. The output PNG file is not as expected. I have attached the same output File along with input PDF file.

Using aspose for .NET the same file is getting converted properly....

I am using aspose-pdf-4.5.0. Do I need to configured any additional setting on Document object before converting...??

Here is My Java Code

public static void main(String arg[]) throws Exception
convertFileToPNGSpecific1("Data/Generated/source1.ppt.pdf", "Data/ConvertedUsingJAVA.png", 1);
protected static void convertFileToPNGSpecific1(String pFilename,String pOutputName, int pIndex) throws Exception
com.aspose.pdf.Document lDocument = new com.aspose.pdf.Document(pFilename);
com.aspose.pdf.devices.Resolution resolution = new com.aspose.pdf.devices.Resolution(150);
com.aspose.pdf.devices.JpegDevice jpegDevice = new com.aspose.pdf.devices.JpegDevice(resolution, 100);

com.aspose.pdf.Page lPngPage = lDocument.getPages().get_Item(pIndex);

Thanks in advance....:)



Hi Dhawal,

Thanks for your posting and using Aspose APIs.

It seems your issue is related to Aspose.Pdf, so I am moving your thread to correct forum. Aspose.Pdf support team will look into your issue and help you asap.

Hi Dhawal,

Thanks for contacting support.

I have tested the scenario and I am able to
notice the same problem that background color of Rectangle objects is appearing as Black in resultant Image and therefore text is not properly visible. For the sake of correction, I have logged this problem
as PDFNEWJAVA-33947 in our issue tracking system. We will further
look into the details of this problem and will keep you updated on the status
of correction. Please be patient and spare us little time. We are sorry for
this inconvenience.

Hi Nayyer,

Any updates on this ???


Hi Dhawal,

Thanks for your inquiry. I’m afraid your reported issue is still not resolved, as we have recently noticed the issue and its investigation is pending in the queue with other priority tasks. However, We will keep you updated with issue resolution progress via this forum thread.

Thanks for your patience and cooperation.

Best Regards,

The issues you have found earlier (filed as PDFNEWJAVA-33947) have been fixed in this update.

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