Hi,
I am trying to convert example.zip (428.0 KB) file to PDF and getting ‘Object reference not set to an instance of an object.’ error. I am using below code snippet
using (Aspose.CAD.Image image = Aspose.CAD.Image.Load(inFilePath))
{
Aspose.CAD.ImageOptions.PdfOptions pdfSaveOptions = new Aspose.CAD.ImageOptions.PdfOptions();
using (Stream stream = new FileStream(outPath, FileMode.CreateNew))
{
image.Save(stream, pdfSaveOptions);
}
}
Looking forward to hear from you.
Regards,
Naeem