License

License class

Provides methods to license the component.

Methods

constructor

NameDescription
constructor()Initializes a new instance of this class.

Result:


setLicense

NameDescription
setLicense(licenseName)Licenses the component. Tries to find the license in the following locations:1. Explicit path.2. The folder that contains the Aspose component JAR file.3. The folder that contains the client’s calling JAR file.

Result:


setLicense

NameDescription
setLicense(stream)Licenses the component. Use this method to load a license from a stream.

Parameters:

NameTypeDescription
streamInputStreamA stream that contains the license.

Result: