How do I load a license key?

8th June 2017
iText PDF

The license key 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.

 

You'll need two things:

  1. A license key file.

  2. The correct version of the license key library. If you're using iText 7, or iText 5.5.13 (or newer) you'll need to use version 3.x.y of the license key library. If you're using iText 5.5.12 (or earlier), you'll need to use version 1.x.y of the license key library.

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

Java

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

C#

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

 

NOTE: You'll need to call this line of code before any other iText API call. Not loading the key at start up might result in the producer line having a reference to "AGPL" instead of your company name.



Contact

Still have questions? 

We're happy to answer your questions. Reach out to us and we'll get back to you shortly.

Contact us
Stay updated

Join 11,000+ subscribers and become an iText PDF expert by staying up to date with our new products, updates, tips, technical solutions and happenings.

Subscribe Now