Licensing - Aspose.TeX for Java

Evaluation Version Limitations

The 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 the output document. Also, those pages will be stamped with an 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 the License using File or Stream Object

Use the License.setLicense method to licensing 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 the 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.");

Metered License

Aspose.TeX has an alternative licensing mechanism called Metered Licensing. If a customer wishes to be billed based on the usage of the API features, they can apply a Metered License, which is actually as simple as applying a cryptographic key pair. For more details, please refer to the Metered Licensing FAQ section.

The public and private keys of a metered license can be set using an instance of the Metered class, as shown below:

1// Set metered public and private keys.
2new com.aspose.tex.Metered().setMeteredKey(
3    "<type public key here>",
4    "<type private key here>");

Have any questions about Aspose.TeX?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.