Free Support Forum - aspose.com

Create a PDF from an XML representation

Hi There,

I am evaulating the Aspose Cells and PDF product via Aspose Total for Java

A very simple example is failing:

String licenseFile = "/Users/mark/HDD/Splashpond/projects/inline applet vwr/Aspose.Total.Java.lic";
License license = new License();
license.setLicense(new FileInputStream(licenseFile));

Pdf pdf = new Pdf();
pdf.bindXML("/Users/mark/HDD/Splashpond/invoices/invoice3_aspose_converted.xml",null);
pdf.save("/Users/mark/invoice3_aspose.pdf");

java.lang.NullPointerException
at aspose.pdf.c.p.do(Unknown Source)
at aspose.pdf.c.aa.if(Unknown Source)
at aspose.pdf.e.m.a(Unknown Source)
at aspose.pdf.e.bm.a(Unknown Source)
at aspose.pdf.e.bo.a(Unknown Source)

Please advise.

Thanks,

Mark


This message was posted using Aspose.Live 2 Forum

Hello Mark,

Thanks for considering Aspose.

In order to create a PDF document from an XML document, it must be in Aspose.Pdf compatible format. Please visit the following link for information on Introduction to XML Technologies and Create a Hello World PDF document through XML

I would also recommend you to visit the following link for information on Aspose.Pdf Document Object Model (DOM)

In case you still face any problem or you've any further query, please feel free to contact.

We apologize for your inconvenience.