Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
A free evaluation version of Aspose.SVG for .NET can be downloaded from the downloads section of Aspose’s website at: Download Aspose.SVG API.
The evaluation version provides all the features except the following:
If you want to try Aspose.SVG without evaluation limitations, request a 30 day temporary license. Please refer to How to get a Temporary License? For more information.
The license can be loaded from a file or stream object. Aspose.SVG for .NET will try to find the license in the following locations:
If you are using any other Aspose for .NET API along with Aspose.SVG for .NET, please specify the namespace for the license like Aspose.ThreeD.License.
The easiest way to apply a license is to put the license file in the same folder as the Aspose.SVG.dll file and specify just the file name without a path.
When you call the SetLicense method, the license name that you pass should be that of the license file. For example, if you change the license file name to “Aspose.SVG.lic.xml” pass that filename to threeD.SetLicense(…) method.
Example:
1// Initialize a license object
2Aspose.Svg.License svgLicense = new Aspose.Svg.License();
3
4// Apply the license using a file name
5svgLicense.SetLicense("Aspose.SVG.lic");The following example shows how to load a license from a stream.
1// Initialize a license object
2Aspose.Svg.License svgLicense = new Aspose.Svg.License();
3
4// Open a license file stream
5using (var stream = new System.IO.FileStream("Aspose.SVG.lic", System.IO.FileMode.Open))
6{
7 // Apply the license using the stream
8 svgLicense.SetLicense(stream);
9}One way of applying a license is to set it using a file or stream object. Another neat way of packaging the license with your application and making sure it will not be lost is to include it as an embedded resource into one of the assemblies that calls the component’s DLL (included in Aspose.SVG).
To include the license file as an embedded resource:
The following code snippet is used to set the license.
1// Initialize a license object
2Aspose.Svg.License svgLicense = new Aspose.Svg.License();
3
4// Apply the license using the embedded resource name
5svgLicense.SetLicense("Aspose.SVG.lic");Aspose.SVG for .NET API allows developers to apply the metered license. It is a new licensing mechanism. The new licensing mechanism will be used along with the existing licensing method. Those customers who want to be billed based on the usage of the API features can use the metered licensing. For more details, please refer to Metered Licensing FAQ section.
After completing all the necessary steps to obtain this type of license, you will receive the keys, not the license file. A new class Metered has been added to apply the metered key. This code example demonstrates how to set metered public and private keys:
1// Initialize a metered object
2Aspose.Svg.Metered metered = new Aspose.Svg.Metered();
3
4// Apply the metered license using the public and private keys
5metered.SetMeteredKey("*****", "*****");Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.