Object Reference Error - Exporting PDF

Hello,

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
}

Thanks,
Jay

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.