Ironpdf License Key

bool isLicensed = IronPdf.License.IsLicensed; Console.WriteLine($"Is IronPDF licensed in this session? isLicensed");

To keep your credentials secure and out of your source control repository, set a system environment variable. IronPdf_LicenseKey Variable Value: IRONPDF-YOUR-LICENSE-KEY-HERE

You can activate your license key using three common methods. Method 1: Setting the Key in C# Code ironpdf license key

IronPDF offers various licensing models tailored to different organizational needs. These generally range from Lite licenses for individual developers to Professional and Enterprise licenses that accommodate larger teams and unlimited deployment distributions. Unlike subscription models that require recurring payments, IronPDF licenses are often perpetual, meaning a one-time purchase grants the license holder the right to use that specific version of the software indefinitely. This model provides long-term cost stability for projects with fixed budgets.

Once you have the key, you must apply it . 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). bool isLicensed = IronPdf

: A trial or commercial key is mandatory for any internet-facing or live intranet project. Apply a license key in IronPDF

Console.WriteLine("ERROR: License key missing from appsettings.json"); return; Method 1: Setting the Key in C# Code

An IronPDF license key is a unique cryptographic string provided by Iron Software. It unlocks the full, unrestricted version of the library.

IronPDF automatically detects this configuration key at runtime and activates itself. Method 2: Setting the Key Directly in C# Code

You purchased a Lite license but are trying to use Professional/Enterprise features.

All paid licenses are perpetual for the major version you purchased (e.g., 2024.x). Support and updates require an annual maintenance renewal.