I am using temporary license but still I am getting watermarks
@akki8007 You should apply the license in your code before using any Aspose.Words classes:
com.aspose.words.License wordsLic = new com.aspose.words.License();
wordsLic.setLicense("C:\\Temp\\Licenses\\Aspose.Total.Java.lic");
// You code.
Please see our documentation to learn how to apply the license:
https://docs.aspose.com/words/java/licensing/#apply-license-using-a-file-or-stream-object
Hi @alexey.noskov
I am using
try {
com.aspose.words.License license = new com.aspose.words.License();
license.setLicense(new java.io.FileInputStream("Aspose.Words.Java.lic"));
} catch (Exception e) {
e.printStackTrace();
}
like this in activity and after that I am using other functions but not working for me
@akki8007 Please check the following points:
- Make sure your call to
SetLicense
gets executed. Step through in the debugger. - Make sure your code does not catch an exception thrown by Aspose.Words licensing code. For example, Aspose.Words will throw if it cannot find the license.
- Make sure the input documents do not already have the evaluation message. Aspose.Words does not delete existing evaluation messages.
- Make sure
SetLicense
is executed before you instantiate anyDocument
object.