Choose a plan that matches your development team size and deployment needs.
logger.LogError("IronPDF license is invalid or missing. PDF generation will fail."); // Optionally, shut down the application.
import IronPdfGlobalConfig from "@ironsoftware/ironpdf";
// Apply the license key before calling any IronPDF methods IronPdf.License.LicenseKey = "IRONPDF-MY-LICENSE-KEY-1EF01"; // Optional: Check if the key is active if (IronPdf.License.IsLicensed) Console.WriteLine("IronPDF is ready for production!"); Use code with caution. Copied to clipboard Using Configuration Files ironpdf license key
Effectively managing your IronPDF license key is a fundamental step in integrating powerful PDF functionality into your applications. From obtaining a free trial to selecting the right perpetual license for your team, and from setting the key directly in code to managing licenses across an enterprise, the process is designed to be straightforward and developer-friendly.
: Testing advanced features in a staging environment without watermarks.
com.ironsoftware.ironpdf.License.setLicenseKey("IRONPDF-YOUR-KEY-HERE"); Use code with caution. Copied to clipboard : javascript Choose a plan that matches your development team
Always obtain your license keys through official channels, avoid illegal cracks, and enjoy the full power of one of the most trusted PDF libraries in the .NET ecosystem.
For modern web apps and APIs, store the key in your configuration file. IronPDF will automatically detect it. Add this to your appsettings.json : "IronPdf.LicenseKey": "IRONPDF-YOUR-LICENSE-KEY-HERE" Use code with caution. Method 3: Using Web.config or App.config (.NET Framework)
: You can request a trial license key instantly. This key allows you to test all premium features in a live environment without watermarks for 30 days. : Testing advanced features in a staging environment
Ultimate Guide to IronPDF License Keys: Commercial vs. Free Options
: If you receive this error, ensure there are no leading or trailing spaces in your key string and that it has not expired.
for a specific framework (like ASP.NET Core or Python)? Exploring IronPDF code examples for rendering HTML to PDF?
Console.WriteLine("ERROR: License key missing from appsettings.json"); return;
Adding PDF generation and manipulation capabilities to your .NET applications is a common requirement, and IronPDF has emerged as a powerful commercial library to meet this need. However, before you can leverage its full capabilities—like converting HTML to PDFs, merging documents, or adding digital signatures—you must properly activate it with a valid license key. This process removes the trial watermark, unlocks all features, and ensures you are compliant with the library’s terms of service.