Ironpdf License Key May 2026
After applying the key, you should verify that IronPDF has accepted it. Use the IsValidLicense() method:
bool isValid = IronPdf.License.IsValidLicense(); Console.WriteLine($"License valid: isValid");
// Also check license type and expiry var licenseInfo = IronPdf.License.GetLicenseInfo(); Console.WriteLine($"Licensed to: licenseInfo.Licensee"); Console.WriteLine($"Expiration: licenseInfo.ExpirationDate");
If IsValidLicense() returns false:
You can programmatically verify if IronPDF is licensed: ironpdf license key
if (IronPdf.License.IsLicensed)
Console.WriteLine("✅ Licensed for production");
Console.WriteLine($"License type: IronPdf.License.LicenseType");
Console.WriteLine($"Expiration: IronPdf.License.ExpirationDate");
else
Console.WriteLine("⚠️ Running in trial mode");
"IronPdf":
"LicenseKey": "YOUR-KEY-HERE"
var key = Configuration["IronPdf:LicenseKey"];
License.LicenseKey = key;
To avoid headaches in production, follow these DevOps best practices.
An IronPDF license key is a unique alphanumeric string that unlocks the full library for production use. Without a license: After applying the key, you should verify that
A valid key removes all restrictions and legal limitations.
Once you have the key, you must apply it before using any PDF generation methods. The most reliable place is in the Main method or application startup (e.g., Program.cs in .NET 6+, or Global.asax in .NET Framework). If IsValidLicense() returns false :
Before you can use a key, you must obtain it. There are two primary types of keys: Trial Keys and Production Keys.
In GitHub Actions or Azure DevOps, store your license key as a secret and inject it at runtime:
- name: Run IronPDF Tests
env:
IRONPDF_LICENSE: $ secrets.IRONPDF_LICENSE
run: dotnet test