iTextSharp Valid License Not working

2.3k views Asked by At

I'm trying to use iTextSharp with valid license obtained for commercial purpose. But the document producer line is still showing "AGPL version".

Steps Followed:

  1. Installed iText 7 License Key (dll version 2.0.2.0) and iTextSharp (dll version 5.5.10.0) through Nuget
  2. Loaded the license XML file before generating the PDF.

    LicenseKey.LoadLicenseFile(path\iTextkey.xml);
    

After loading the license file, I'm able to see the name, company , key etc. details in LicenseKey.GetLicenseeInfo().

PDF Producer still shows iText Group NV (AGPL-version) instead of Licensed.

PDF Document Properties

Any suggestions on why it is not working?

1

There are 1 answers

0
Amedee Van Gasse On

You are mixing the wrong versions of iText and the License Key library.

  • iText 5 for .NET (aka iTextSharp) requires License Key library 1.0.4. Available only on the iText website.
  • iText 7 for .NET requires License Key library 2.0.2. Available on NuGet and on the iText website.

See also http://developers.itextpdf.com/license-key-download