We have a valid license and currently we are using Word and PDF do I have to explicitly for each of them or is there a total Product license class I can use?
try {
com.aspose.words.License license = new com.aspose.words.License();
LOGGER.info(“Setting Aspose License”);
license.setLicense(“Aspose.Total.Java.lic”);
} catch (Exception e) {
e.printStackTrace();
LOGGER.error(“Aspose License Failed”, e);
}
try {
com.aspose.pdf.License pdfLicense = new com.aspose.pdf.License();
pdfLicense.setLicense(“Aspose.Total.Java.lic”);
System.out.println(“com.aspose.pdf.License: Valid”);
} catch (Exception e) {
e.printStackTrace();
LOGGER.error(“Aspose com.aspose.pdf.License: Failed”, e);
}