How do I load a 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:





Do note that 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.

Ready to use iText?

Try our iText 7 Library and add-ons FREE for 30 days. Test your proof of concept, and see if our solution is right for you.

Get my FREE trial

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