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

Free Support Forum - aspose.com

Object Reference Error - Exporting PDF


When exporting the attached PDF file to PNG image file, I get "object reference error"

Here is my code:

var resolution = new Resolution(100);
var pngDevice = new PngDevice(resolution);

using (MemoryStream ms = new MemoryStream())
objPdf.Pages[0].SendTo(pngDevice, ms); // Error here


Hi Jay,

Thanks for your inquiry. I have tested PDF to PNG conversion scenario with shared document using Aspose.Pdf for .NET 11.4.0 and managed to observe the reported exception. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-40480 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

Best Regards,

Hi, can you please give approx time this could be fixed?

Hi Jay,

Thanks for your inquiry. I am afraid your issue is still not resolved as we have recently noticed the issue and it is still pending for investigation in the queue with other issues, reported earlier. As soon as our product team completes the investigation of the issue then we will share any ETA/findings with you. We will keep you updated about the issue resolution progress.

We are sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as PDFNET-40480) have been fixed in Aspose.PDF for .NET 20.1.