Ironpdf License Key | Exclusive & Official

For CI/CD or cloud deployments:

IRONPDF_LICENSE_KEY=IRONPDF-YOUR-KEY-HERE

IronPDF automatically checks this variable at runtime.


Instead of hardcoding keys, store them in configuration: ironpdf license key

appsettings.json:


  "IronPdf": 
    "LicenseKey": "IRONPDF.MYCOMPANY.2023.ABCD1234EFGH"

Program.cs (.NET 6+):

using Microsoft.Extensions.Configuration;
using IronPdf;

var config = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .Build();

string key = config["IronPdf:LicenseKey"]; IronPdf.License.LicenseKey = key; IronPDF automatically checks this variable at runtime

// Rest of your code...

Yes, projects like iTextSharp (AGPL) and QuestPDF exist, but they have restrictive licenses or fewer features. IronPDF is commercial software.