Hello,
The license is in the src/main/resources directory.
The code does not produce any error, but when I restart the server
weblogic, if the first conversion to the PDF file (converted from Aspose.Words) is a file doc, docx or rtf, Aspose.Words still shows “Evaluation only” message, even after the license.
Here’s is snippet of the code I am using:
/**
* License Aspose
*/
static License license;
if (license == null)
{
license = new License();
try
{
InputStream isLicense = Thread.currentThread().getContextClassLoader().getResourceAsStream("Aspose.Words.lic");
license.setLicense(isLicense);
}
catch (Exception e)
{
logger.error("Erreur sur le chargement de la licence Aspose", e);
}
}
In summary:
Case A:
When I restart the server weblogic, if the first conversion is a ‘.txt’ file or ‘.Odt’ file + X conversions of any type (txt, doc, odt, …) => the conversion is good without “Evaluation only” message.
Case B:
When I restart the server weblogic, if the first conversion is a ‘.Doc’ file or ‘.Docx’ file or ‘.Rtf’ file + X conversions of any type (txt, doc, odt, …) => the first conversion has in the header the “Evaluation only” message.
Have you ever encountered this anomaly?
Could you tell me what am I doing wrong?
The Evaluation message is “Evaluation Only. Created with Aspose.Words. Copyright 2003-2010 Aspose Pty Ltd.”
Thanks in advance.
Cyril BOUTTEVILLE