Aspose PDF License

Evaluation Version Limitations

We want our customers to test our components thoroughly before buying, so the evaluation version allows you to use it as you would normally. However there would be following limitations while using an evaluation version of the API:

PDF created with an evaluation watermark The evaluation version of Aspose.PDF for C++ provides full product functionality, but all the pages in the generated PDF documents are watermarked with “Evaluation Only. Created with Aspose.PDF. Copyright 2002-2017 Aspose Pty Ltd” at the top.

Limit of the Number of Collection Items that can be Processed In the evaluation version, only four items can be processed from any collection (for example, only four pages, four form fields, etc.).

Apply License using File or Stream Object

The license can be loaded from a file or stream object. Aspose.PDF for C++ will try to find the license in the following locations:

  1. Explicit path.
  2. The folder that contains Aspose.PDF.dll.
  3. The folder that contains the assembly that called Aspose.PDF.dll.
  4. The folder that contains the entry assembly (your .exe).
  5. An embedded resource in the assembly that called Aspose.PDF.dll.

The easiest way to set a license is to put the license file in the same folder as the Aspose.PDF.dll file and specify the file name, without a path, as shown in the example below.

Loading a License from File

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

auto lic = MakeObject<Aspose::Pdf::License>();
lic->SetLicense(L"Aspose.PDF.Cpp.lic");

Loading a License from a Stream Object

The following example shows how to load a license from a stream.

intrusive_ptr<License>license = new License();
intrusive_ptr<FileStream> myStream = new FileStream(new String("Aspose.PDF.Cpp.lic"), FileMode_Open);

license->SetLicense(myStream);

Metered License

Aspose.PDF allows developers to apply metered key. It is a new licensing mechanism. The new licensing mechanism will be 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 Metered Licensing FAQ section.

A new class Metered has been introduced to apply metered key. Following is the sample code demonstrating how to set metered public and private keys.

For more details, please refer to the Metered Licensing FAQ section.