XLStoPDF: getting "Evaluation Only....." on top of the pages

Hi,
We are using the following code to convert XLS to PDF. After converting to PDF we are getting the below comment on top of each page even after adding a valid license file.
"Evaluation Only. Created with Aspose.Cells for Java. Copyright 2003 - 2016 Aspose Pty Ltd."

License lic = new License();
lic.setLicense(new FileInputStream(new File("C:\\Aspose\\Aspose.Total.Java.lic")));
String basePath = "C:\\workspace\\files\\";
Workbook workbook = new Workbook(basePath+"new.xls");
//Save the document in PDF format
workbook.save(basePath + "MyPdfFile.pdf", SaveFormat.PDF);
Note:
We are using the same license for other conversions too, for which we are not facing the issue.

Kindly assist.

Thanks in advance.

Regards,
Prabu

Hi Prabu,


Thank you for contacting Aspose support.

Could you please execute the following statements and provide the result here in case the said problem persists?

Java

com.aspose.cells.License lic = new com.aspose.cells.License();
lic.setLicense(new FileInputStream(new File(“C:\Aspose\Aspose.Total.Java.lic”)));
String basePath = “C:\workspace\files\”;

Workbook workbook = new Workbook(basePath+“new.xls”);
System.out.println(CellsHelper.getVersion());
System.out.println(System.getProperty(“java.version”));
System.out.println(workbook.isLicensed());
//Save the document in PDF format
workbook.save(basePath + “MyPdfFile.pdf”, SaveFormat.PDF);