Licensing of Aspose.Page | C++

Evaluate Aspose.Page

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

The evaluation version of Aspose.Page for C++ (without a license specified) provides full product functionality. However, it imposes the following limitations:

If you want to test Aspose.Page for C++ without the evaluation version limitations, you can also request a 30-day Temporary License. Please refer to How to get a Temporary License?

Applying a License

The license can be applied by providing an explicit path to the .lic file. You can use the  License.SetLicense method to licensing the API.

When to Apply a License

Follow these simple rules:

Apply License using File or Stream Object

Calling License.SetLicense multiple times is not harmful but simply wastes processor time. If you are developing a Windows application, call License.SetLicense in your startup code, before using Aspose.Page classes.

Loading a License from File

In this example Aspose.Page for C++ attempts to find/set the license from the explicit file path.

Loading a License from a Stream Object

Initializes a license from a stream

You can Change the License File Name

The license file name does not have to be ‘Aspose.Page.CPP.LIC’. You can rename it to anything you like and use that name when setting license in your application.

Exception Cannot find license filename

When you purchase and download a license, Aspose website names the license file ‘Aspose.Page.LIC’. You download the license file using your browser. Some browsers recognize the license file as XML and append a .xml extension to it so the full name of the file on your computer becomes ‘Aspose.Page.lic.XML’.

When Microsoft Windows is configured to hide extensions of known file types (unfortunately this is default in most Windows installations), the license file will appear to you as ‘Aspose.Page. LIC ’ in Windows Explorer. You are likely to think this is the real file name and call License.SetLicense passing it ‘Aspose.Page.LIC’, but there is no such file, hence the exception.

To solve the problem, rename the file to remove the invisible .xml extension. We also recommend you disable the “hide extensions” option in Microsoft Windows

Using Multiple Products from Aspose

If you use multiple Aspose APIs in your application, for example, Aspose.Page and Aspose.Cells, here are a few useful tips.

Have any questions about Aspose.Page?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.