Evaluate Aspose.HTML for .NET

You can easily download Aspose.HTML for .NET for evaluation purposes. Please note, that the evaluation version is the same as the purchased version. It becomes licensed when you add a few lines of code to apply the license.

The evaluation version (without a license specified) provides full product functionality, but it has some limitations:

  • Saved HTML files contains the evaluation watermarks. Some content of the saved HTML document is replaced with the evaluation watermark.
  • Saved SVG files contains the evaluation watermark and limited number of elements. Some nodes of the saved SVG are removed and the evaluation watermark is added.
  • Converted documents contains the evaluation watermarks and limited number of pages. Each converted page contains the evaluation watermark and the number of converted pages is limited to four.

Applying a License

Aspose.HTML for .NET provides you the number of ways to apply a license. They will be described in the following paragraphs.

If you are using any other Aspose for .NET component along with Aspose.HTML for .NET, please specify complete namespace for License like Aspose.Html.License or Aspose.Html.Metered,

Applying a License from Disk or Stream

The easiest way to apply a license is to put the license file in the same folder as the Aspose.HTML.dll file and specify just the file name without a path.

 // Instantiate the License object.
 Aspose.Html.License htmlLicense = new Aspose.Html.License();
 // Apply a license using the file name.

It is also possible to apply a license from the license file stream.

 // Instantiate the License object.
 Aspose.Html.License htmlLicense = new Aspose.Html.License();
 // Open the license file stream.
 using (var stream = new System.IO.FileStream("Aspose.HTML.lic", System.IO.FileMode.Open))
    // Apply a license using the stream.

Applying a License as an Embedded Resource

Another neat way of packaging the license with your application is to include it as an embedded resource into one of the assemblies that calls Aspose.HTML for .NET. 

To include the license file as an embedded resource, perform the following steps:

  1. In Visual Studio, include the .lic file into your project by right clicking it and choosing Add -> Existing Item… from the opened menu.
  2. Select the file in the Solution Explorer and set Build Action to Embedded resource in the Properties window.
  3. In your code, invoke SetLicense passing only the short name of the resource file.
 // Instantiate the License object.
 Aspose.Html.License htmlLicense = new Aspose.Html.License();
 // Apply a license using the embedded resource name.

Applying a Metered License

Metered license - is a new licensing mechanism, which is used along with 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 the Metered Licensing FAQ section.

The following code snippet demonstrates how to apply the metered license using the private and public keys:

 // Instantiate the Metered object.
 Aspose.Html.Metered metered = new Aspose.Html.Metered();
 // Apply the metered license using the public and private keys.
 metered.SetMeteredKey("*****", "*****");