Hello Aneesh,
Thanks for considering Aspose.
Can you please try setting the license information for Aspose.Pdf before creating its object. You can set the license information once the Excel worksheet is saved into an XML format. Please try using the following code snippet to set the license information for Aspose.Pdf for Java.
[Java]
com.aspose.pdf.License lic = new com.aspose.pdf.License();
try {
lic.setLicense(new FileInputStream(new File("D:/ASPOSE//Licenses/Aspose.Total.Java.lic")));
} catch (Exception e) {
System.out.println(e.getMessage());
}
In case it does not resolve your problem, once the data is populated into Excel worksheet, save the file and share it with us, so that we can test the scenario at our end. You can also visit the following link for information on how to set Licensing information for Aspose.Pdf.
We apologize for your inconvenience.
Nayyer Shahbaz
Support Developer, Aspose Sialkot Team
About Us Contact UsKeep in touch! We're on
Twitter and
Facebook