Licensing - Aspose.TeX for Java
Evaluation Version Limitations
Evaluation version of Aspose.TeX (without a license specified) provides full product functionality except that only up to four first pages can be obtained in output document. Also, those pages will be stamped with evaluation mode watermark.
If you want to try Aspose.TeX out without evaluation limitations, request a 30-day temporary license. Please refer to How to get a Temporary License? for more information.
Apply License using File or Stream Object
Use the License.setLicense method to license the component. The easiest way to set a license is to put the license file in the same folder as the aspose.tex.jar and specify the filename, without a path, as shown below.
Loading a License from File
This code snippet initializes a license stored in a file or in an embedded resource.
1// Initialize license object. 2License license = new License(); 3// Set license. 4license.setLicense("D:\\Aspose.Total.Java.lic"); 5System.out.println("License set successfully.");
Loading a License from a Stream Object
These code snippets initialize the license from stream.
1// Initialize license object. 2License license = new License(); 3// Load license in FileStream. 4InputStream myStream = new FileInputStream("D:\\Aspose.Total.Java.lic"); 5// Set license. 6license.setLicense(myStream); 7System.out.println("License set successfully.");