I am trying to learn the pdfsweep functionality for itext 7. I got a 30-day trial license. When I call LicenseKey.loadLicenseFile(path-to-key-file) , it returns without any errors, but when I try to create an instance of PdfCleanUpTool , I get the following error:
LicenseKeyException License file not loaded. com.itextpdf.licensekey.LicenseKey.checkLicense (LicenseKey.java:410)
Thanks.
source share