Aspose License Word to PDF error

We obain an error after trying to use a function of ASPOSE directly related to the license we have purchased. What we are trying to do is to create a WORD but we have to transform it to PDF, the issue comes at this part. We get an incomplete document after “transforming” it to PDF, and this is because it indicates that we have an evaluation license.
Maybe the license you gave us is the incorrect one or maybe our license doesnt cover this function.

About the license:
We are using the libreary “aspose-words-16.5.0-jdk16.jar” with the purpose transforming from Word to PDF.
THe license file “Aspose.Pdf.lic” corresponds to the library “aspose.pdf-11.6.0.jar” . So we get this error:

java.lang.IllegalStateException: The license is not valid for this product.
at com.aspose.words.zzZPX.zzX(Unknown Source)
at com.aspose.words.zzZPX.zzY(Unknown Source)
at com.aspose.words.License.setLicense(Unknown Source)
at repsol.net.web.service.AsposeManager.(AsposeManager.java:29)

Can you help us solve this. What do we need to do ?

@gestiondeactivosdeti

Thanks for your inquiry. You are getting expected exception, as you have Aspose.Pdf license. If you will try to use it with some other API then you will get above IllegalStateException. To convert a Word file to PDF, you need to use Aspose.Words API with a valid license. You may request a 30 days temporary license file to evaluate the Aspose.Words and proceed for purchase of a license accordingly.