We purchased Aspose Total for Java, and my code is shown below
BaseDocGenerator.java
//set regular license
License license = new License();
InputStream in =
this.getClass()
.getClassLoader()
.getResourceAsStream(L…... Java runtime version (e.g., JDK 8, 11, 17)...newer API versions. This compatibility approach will always work...