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

Free Support Forum - aspose.com

PNG conversion - PdfCoverter.GetNextImage vs PngDevice.Process

Hi there,

I’m looking at converting PDFs to PNG images. I’ve come across sample scripts that appear to similar things but use different approaches, that is they either user PdfConverter.GetNextImage or PngDevice.Process. Looking at the API reference I am unclear which one I should use and why.

My questions are: is there any major difference between the two approaches? Is one better than the other and if so why (e.g. performance, memory etc)?

Thanks in advance,


Hi Alistair,

Thanks for using our API’s.

PdfConverter.GetNextImage() method is used to transform PDF pages to Image format using legacy Aspose.Pdf.Facades namespace however PngDevice is new class based on new Document Object Model of Apsose.Pdf.Devices namespace and is recommended approach as compared to legacy Aspose.Pdf.Facades approach. In case you encounter any issue, please share the resource files, so that we can test the scenario in our environment.

Thanks for your advice, Nayyer. Much appreciated.