

You forgot to set License.LicenseKey before calling any PDF method.
For cloud deployments (like Azure or Docker), you can set an environment variable named IronPdf_LicenseKey . This keeps the key out of your source code for better security. Troubleshooting Common License Issues ironpdf license key
Before you can use a key, you must obtain it. There are two primary types of keys: and Production Keys . The Ultimate Guide to IronPDF License Keys: Acquisition,
string key = ConfigurationManager.AppSettings["IronPdf.LicenseKey"]; IronPdf.License.LicenseKey = key; You just purchased a license and need to