[URGENT, RENEWAL START - 4/29] New renewal license key does not work for PPT to PDF conversion for Aspose Total
This is for Java program.
Sample:
private static void checkSlidesLicense(String licenseLocation) {
com.aspose.slides.License license = new com.aspose.slides.License();
System.out.println("Checking license...");
if (!license.isLicensed()) {
File licenseFile = new File(licenseLocation);
if (licenseFile.exists()) {
license.setLicense(licenseLocation);
System.out.println("License set.");
} else {
System.out.println("SLIDES License was not found.");
}
}
}
We have similar program to check the license while converting word to pdf and works without issue:
private static void checkWordsLicense(String licenseLocation) {
try {
System.out.println("Checking license...");
com.aspose.words.License license = new com.aspose.words.License();
if (!license.isLicensed()) {
System.out.println("License not set. Setting license...");
File licenseFile = new File(licenseLocation);
if (licenseFile.exists()) {
System.out.println("License file exists.");
license.setLicense(licenseLocation);
System.out.println("License set!");
} else {
System.out.println("WORDS License was not found.");
}
}
} catch (Exception e) {
System.out.println("Failed to load Aspose license. ");
}
}