Licensing

Sometimes, for the best evaluation outcomes, a hands-on approach might be needed. For this reason, Aspose.Slides provides different purchase plans and also offers a Free Trial and a 30-day Temporary License for evaluation.

Evaluate Aspose.Slides

You can easily download Aspose.Slides for evaluation. The evaluation package is the same as the purchased package. The evaluation version simply becomes licensed after you add a few lines of code to apply the license.

Evaluation Version Limitation

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

About the License

You can easily download an evaluation version of Aspose.Slides for Node.js via Java from its download page. The evaluation version provides absolutely the same capabilities as the licensed version of Aspose.Slides. Furthermore, the evaluation version simply becomes licensed after you purchase a license and add a couple of lines of code 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 file is digitally signed, so do not modify the file. Even an inadvertent addition of an extra line break to the contents of the file will invalidate it.

To avoid the limitations associated with the evaluation version, you need to set a license before using Aspose.Slides. You are only required to set a license once per application or process.

Purchased License

After purchase, you need to apply the license file or stream.

Setting a License in Aspose.Slides for Node.js via Java

Licenses can be applied from these locations:

  • Explicit path
  • Stream
  • As a Metered License – a new licensing mechanism

Applying a License Using a File

This code snippet is used to set a license file:

Node.js

var aspose = aspose || {};

aspose.slides = require("aspose.slides.via.java");

var license = new aspose.slides.License();
license.setLicense("Aspose.Slides.lic");

When calling the setLicense method, the license name should be same as that of your license file. For example, you can change the license file name to “Aspose.Slides.lic.xml”. Then, in your code, you have to pass the new license name (Aspose.Slides.lic.xml) to the setLicense method.

Applying a License from a Stream

This code snippet is used to apply a license from a stream:

Node.js

var aspose = aspose || {};

aspose.slides = require("aspose.slides.via.java");

var license = new aspose.slides.License();

var fs = require("fs");

var readStream = fs.createReadStream("Aspose.Slides.lic");

license.setLicense(readStream, function(err, list) {
    if(err) { 
        console.error(err); return; 
    }});