Licensing | Aspose.TeX for Python
Evaluate Aspose.TeX
To evaluate Aspose.TeX for Python, you can easily download the product from the Aspose.TeX for Python download page. The evaluation version is the same as the purchased version. By adding a few lines of code to apply the license, the evaluation version becomes licensed. Please refer to the download page for the latest version.
Evaluation Version Limitations
The The evaluation version of Aspose.TeX provides full product functionality, with the exception that only the first four pages can be obtained in the output document. Additionally, these pages will be stamped with an evaluation mode watermark.
If you would like to try Aspose.TeX without these evaluation limitations, you can request a 30-day temporary license which will you test every aspect of a product before buying it.
Applying a License
After you have completed your evaluation of Aspose.TeX for Python and are satisfied with its performance, you can purchase a license through the Aspose website at the Purchase Portal. It is recommended to familiarize yourself with the different license types available before making a purchase. If you have any questions or need assistance, please feel free to contact the Aspose sales team, as they will be more than happy to help you.
Each Aspose license includes a one-year subscription that entitles you to free upgrades to any new versions or fixes released during that period. We also offer free and unlimited technical support to both licensed and evaluation users.
The license for Aspose is a plain text XML file that includes information such as the product name, number of licensed developers, and subscription expiry date. It is important not to modify the file as it is digitally signed, and even adding an extra line break will invalidate it.
When to Apply a License
Please follow these guidelines:
- The license only needs to be set once per application domain.
- Set the license before using any other Aspose.TeX classes.
- Calling
set_licensemultiple times is not harmful but wastes processor time.
Loading a License from File
The following example applies a license from a file. Set ASPOSE_TEX_PYTHON_NET_LICENSE_PATH to the license path, or place Aspose.TeX.Python-net.lic in the working directory.
1# Apply a license from a file before using other Aspose.TeX classes.
2import os
3from aspose.tex import License
4
5# Set this environment variable, or place the license in the working directory.
6license_path = os.environ.get(
7 "ASPOSE_TEX_PYTHON_NET_LICENSE_PATH", "Aspose.TeX.Python-net.lic"
8)
9license = License()
10license.set_license(license_path)Loading a License from a Stream Object
The next example opens the license file as a binary stream and closes it after applying the license. It uses the same license path setting as the file example.
1# Apply a license from a binary stream.
2import os
3from aspose.tex import License
4
5license_path = os.environ.get(
6 "ASPOSE_TEX_PYTHON_NET_LICENSE_PATH", "Aspose.TeX.Python-net.lic"
7)
8license = License()
9with open(license_path, "rb") as license_stream:
10 license.set_license(license_stream)Metered License
Aspose.TeX offers an alternative licensing mechanism called Metered Licensing, which allows customers to be billed based on their usage of the API features. Applying a Metered License is as simple as applying a pair of cryptographic keys. For more information, please refer to the Metered Licensing FAQ section.
To set the public and private keys of a metered license, you can use an instance of the
Metered class, as shown below. Supply your keys through ASPOSE_TEX_METERED_PUBLIC_KEY and ASPOSE_TEX_METERED_PRIVATE_KEY:
1# Apply metered licensing using your public and private keys.
2import os
3from aspose.tex import Metered
4
5# Supply real keys securely in the environment; never embed them in source code.
6public_key = os.environ["ASPOSE_TEX_METERED_PUBLIC_KEY"]
7private_key = os.environ["ASPOSE_TEX_METERED_PRIVATE_KEY"]
8metered = Metered()
9metered.set_metered_key(public_key, private_key)