Licensing
Contents
[
Hide
]
Call setLicense
To apply a license:
Save the license file to a folder on your disk. For example C:\Lic\Aspose.CAD.Python.lic. Call the License.setLicense(filename) method and pass the file name as an argument. When this statement is called, the license is set and the evaluation message will no longer appears on top of the images. The following code snippet sets the license for Aspose.CAD for Pythons.
// Set license
License lic = new License();
lic.setLicense("C:\Lic\Aspose.CAD.Pythons.lic");
You need to call the setLicense() method only once per process or application.
Set the license Exporter Parameter in applicationContext.xm
This method is applicable for use with JasperServer.
- Download the license to your computer and copy it to the \apache-tomcat\webapps\jasperserver\WEB-INF folder, where stands for the JasperServer installation directory.
- Locate the \apache-tomcat\webapps\jasperserver\WEB-INF\applicationContext.xml file and add the following lines:
<bean id="jpgExportParameters" class="com.aspose.cad.pythons.jpg.ASJpegExportParametersBean"> <property name="license" value="C:\jasperserver-7.6\apache-tomcat\webapps\jasperserver\WEB-INFAspose.CAD.Pythons.lic"/> </bean>