Licensing | Aspose.TeX for .NET
Evaluate Aspose.TeX
You can easily download Aspose.TeX for .NET product for evaluation purposes. Please refer to the Aspose.TeX for .NET download page to find out the latest version. The evaluation download is same as the purchased download. The evaluation version simply becomes licensed when you add a few lines of code to apply the license.
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.
Applying a License
Once you are happy with your evaluation of Aspose.TeX for .NET, buy a license at the Aspose website: Purchase Portal. Make yourself familiar with the different license types available. If you have any questions, contact the Aspose sales team and they’ll be happy to help you.
Every Aspose license carries a one-year subscription for free upgrades to any new versions or fixes that come out during this time. We provide free and unlimited technical support to both licensed and evaluation users.
The license is a plain text XML file that contains details such as the product name, number of licensed developers, subscription expiry date and so on. The file is digitally signed, so do not modify the file: even adding an extra line break to the file invalidates it.
When to Apply a License
Follow these simple rules:
- The license only needs to be set once per application domain.
- You need to set the license before using any other Aspose.TeX classes.
- Calling SetLicense multiple times is not harmful, but wastes processor time.
- If you are developing a Windows Forms or console application, call SetLicense in the startup code, before using Aspose.TeX classes.
- When developing an ASP.NET application, call SetLicense from the Global.asax.cs file, in the Aplication_Start protected method. It is called once when the application starts.
- Do not call SetLicense from within the Page_Load methods since it means the license will be loaded every time a web page is loaded.
- If you are developing a class library, you can call SetLicense from a static constructor of the class that uses Aspose.TeX. The static constructor executes before an instance of your class is created making sure Aspose.TeX license is properly set.
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.dll 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.NET.lic");
5Console.WriteLine("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.
4FileStream myStream = new FileStream("D://Aspose.Total.NET.lic", FileMode.Open);
5// Set license.
6license.SetLicense(myStream);
7Console.WriteLine("License set successfully.");
Metered License
Aspose.TeX has an alternative licensing mechanism. Those customers who wish to be billed based on the usage of the API features can use Metered Licensing. Applying a Metered License is actually as simple as applying a pair of cryptographic keys. For more details, please refer to Metered Licensing FAQ section.
The public and private keys of a metered license are set using an instance of the Metered class, as shown in the following example:
1// Set metered public and private keys.
2new Aspose.TeX.Metered().SetMeteredKey(
3 "<type public key here>",
4 "<type private key here>");