How do I check if my key has been loaded correctly?

For the core iText library, the license is only checked when you load it. If you loaded the license key and there was no exception thrown, then it loaded perfectly fine. The add-ons will regularly che

For the core iText library, the license is only checked when you load it. If you loaded the license key and there was no exception thrown, then it loaded perfectly fine. The add-ons will regularly check the license key. If there is an issue with your license key, the library will throw a LicenseKeyException. The possible exceptions and how to resolve them are described below.

If you want to check the license key manually, you can call the following method:

Java

LicenseKey.scheduledCheck(null);

C#

LicenseKey.ScheduledCheck(null);

This will throw a LicenseKeyException when the key is invalid or corrupt.


Share this article

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
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