Licensing

Evaluate Aspose.Slides

Evaluation version limitations

  • While Aspose.Slides evaluation version (without a license specified) provides full product functionality, it inserts an evaluation watermark at the top of the document on open and save operations.
  • You are limited to one slide when extracting texts from presentation slides.

Licensing in Aspose.Slides

  • An evaluation version becomes licensed after you purchase a license and add a couple of lines of code to it (to apply the license).
  • The license is a plain-text XML file that contains details such as the product name, number of developers it is licensed to, subscription expiry date, and so on.
  • The license file is digitally signed, so you must not modify the file. Even an inadvertent addition of an extra line break to the contents of the file will invalidate it.
  • Aspose.Slides for Python via .NET typically tries to find the license in these locations:
    • An explicit path
    • The folder containing the Python script that calls Aspose.Slides for Python via .NET
  • To avoid the limitations associated with the evaluation version, you need to set a license before using Aspose.Slides. You only have to set a license once per application or process.

Applying a License

A license can be loaded from a file, stream, or embedded resource.

File

The easiest method of setting a license requires you to place the license file in the same folder containing the component’s DLL (included in Aspose.Slides) and specify the file name without its path.

This Python code shows you how to set a license file:

import aspose.slides as slides

# Instantiates the License class 
license = slides.License()

# Sets the license file path
license.set_license("Aspose.Slides.lic")

Stream

You can load a license from a stream. This Python code shows you how to apply a license from a stream:

import aspose.slides as slides

# Instantiates the License class 
license = slides.License()

#Sets the license through a stream
license.set_license(stream)

Validating a License

To check whether a license has been set properly, you can validate it. This Python code shows you how to validate a license:

import aspose.slides as slides

license = slides.License()

license.set_license("Aspose.Slides.lic")

if license.is_licensed():
    print("License is good!")

Thread Safety