Free Support Forum -

Create Pdf based on XML: Problem while using Image

I am using aspose.pdf to generate PDF based on XML & able to create the PDF with right formatting & styles.
But when I try to use an Image tag in the XML, I get the following error. Please find below the the Stacktrace i get when there is an image tag in XML and trying to save as PDF.

Caused by: java.lang.NullPointerException
at aspose.pdf.xml.Abi.a(SourceFile:551)
at aspose.pdf.xml.Abj.a(SourceFile:578)
at aspose.pdf.xml.Acd.a(SourceFile:804)
at aspose.pdf.xml.Aar.a(SourceFile:104)
at aspose.pdf.xml.Aba.a(SourceFile:113)

Can you please look into this issue and respond


Hi Mahesh,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the details.

For further testing of your issue, please share your template XML file which is causing the problem. It will help us in identifying the cause of the issue soon.

Sorry for the inconvenience,