How to install your new iText license.

If you're using iText 7.2 and later, you should have a license key in JSON format and will require version 4.x.y of the license key library. If you are using iText 7.1.17 or older you should have a license key in XML format. See the instructions for iText 7.1.x.

NOTE: Loading the license file should be done as early as possible in the flow of your application using the static method of the LicenseKey class. When you load a volume license key, the license key library will set up everything for you—there is no need to set up any additional counter or logger. Also, once a license key has been loaded it is active for the entire CLR/JVM runtime, if you have multiple CLRs or JVMs accessing the same license key you should provide a copy of the license key for each CLR/JVM.

To load the license key file, you'll need to call the following lines of code:

For iText 7.2.x

In the following examples the license key file has been renamed to "itextkey.json" for convenience.

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

Java

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

.NET

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

For iText 7.1.x

In the following examples the license key file has been renamed to "itextkey.xml" for convenience.

  • If you're using iText 7 Suite version 7.1.17 (or older) you'll need to use version 3.x.y of the license key library.

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

  • If you've upgraded from iText 5 it is loaded in the same way as the iText 5 license.

Java

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

.NET

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



You do need to be aware of the following:

  • You need to use iText 7

  • You need to load your iText 7 license file and disregard your iText 5 license

  • You need to use the license key library version 3.x.y