How do I load a license key?

Category: 
Tags: License Key

You'll need two things:

  1. A license key file.

  2. A version of the license key library.

The library is a jar or dll that you add to your project. This library is used to load and validate your license key. This library will also enable the functionality in the iText 7 add-ons if there is an appropriate entry in the license key file.

To load a license key, use the following line of code:

Java

LicenseKey.loadLicenseFile("path/to/itextkey.xml");

C#

LicenseKey.LoadLicenseFile("path/to/itextkey.xml");