IronPDF License Keys

This article was translated from English: Does it need improvement?
Translated
View the article in English

How to Get a License Key

Adding an IronPDF license key allows you to develop and deploy your project live without restrictions.

Comience a usar IronPDF en su proyecto hoy con una prueba gratuita.

Primer Paso:
green arrow pointer


Step 1: Download the Latest Version of IronPDF

Install via NuGet

In Visual Studio, right-click on your project in the Solution Explorer and select "Manage NuGet Packages...". From there, simply search for IronPDF and install the latest version. Click "OK" to any dialog boxes that come up.

This will work in any C# .NET Framework project from Framework 4.6.2 and above, or .NET Core 2.0 and above. It will also work in VB.NET projects.

Install-Package IronPdf

https://www.nuget.org/packages/IronPdf

Install via DLL

Alternatively, the IronPDF DLL can be downloaded and manually installed to the project or GAC from https://ironpdf.com/packages/IronPdf.zip

Remember to add this statement to the top of any .cs class file using IronPDF:

using IronPdf;
using IronPdf;
Imports IronPdf
$vbLabelText   $csharpLabel

Step 2: Apply Your License Key

Set your IronPdf license key using code

Add this code to the startup of your application, before IronPDF is used. This method is universally effective and straightforward. It works for .NET Core and also for .NET Framework applications.

// Set the IronPdf license key
IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-1EF01";
// Set the IronPdf license key
IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-1EF01";
' Set the IronPdf license key
IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-1EF01"
$vbLabelText   $csharpLabel

You can validate that your software is licensed using either IronPdf.License.IsValidLicense(string LicenseKey) or the IronPdf.License.IsLicensed property.

Set your key using Web.Config or App.Config in .NET Framework Applications

To apply a key globally to your application using Web.Config or App.Config, add the following key to your config file in the <appSettings> element.

<configuration>
  <appSettings>
    <add key="IronPdf.LicenseKey" value="IRONPDF-MYLICENSE-KEY-1EF01"/>
  </appSettings>
</configuration>
<configuration>
  <appSettings>
    <add key="IronPdf.LicenseKey" value="IRONPDF-MYLICENSE-KEY-1EF01"/>
  </appSettings>
</configuration>
XML

There is a known licensing issue between IronPdf version 2023.4.4 and 2024.3.3 in projects:

  • ASP.NET projects
  • .NET Framework version >= 4.6.2

The key stored in a Web.config file is NOT being picked up and used by the product. Visit the 'Setting License Key in Web.config' troubleshooting article to learn more.

Ensure that IronPdf.License.IsLicensed returns true to verify.

Set your key using a .NET Core appsettings.json file

To apply a key globally to your application with .NET Core:

  • Add a JSON file to your project called appsettings.json in the root directory of your project.
  • Add an 'IronPdf.LicenseKey' key to your JSON config file. The value should be your license key.
  • Ensure that the file properties include Copy to Output Directory: Copy always.
  • Ensure that IronPdf.License.IsLicensed returns true to verify.

File: appsettings.json

{
  "IronPdf.LicenseKey": "IRONPDF-MYLICENSE-KEY-1EF01"
}

Set your key in Azure Functions

Local

Add the license key into local.settings.json:

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "IronPdf.LicenseKey": "YOUR-LICENSE-KEY"
  }
}

Deployment

  1. Go to the Azure portal and sign in to your Azure account. In the search bar at the top of the portal, enter the name of your function app and select it from the list.
  2. Under Settings in the left pane, select Configuration.
  3. Select Application settings and click "New Application setting."
  4. Add Name and Value as follows:

    • Name: IronPdf.LicenseKey
    • Value: YOUR-LICENSE-KEY
  5. Save it.

Step 3: Test if your key has been installed correctly

// Check if a given license key string is valid
bool result = IronPdf.License.IsValidLicense("IRONPDF-MYLICENSE-KEY-1EF01");

// Check if IronPDF is licensed successfully
bool is_licensed = IronPdf.License.IsLicensed;
// Check if a given license key string is valid
bool result = IronPdf.License.IsValidLicense("IRONPDF-MYLICENSE-KEY-1EF01");

// Check if IronPDF is licensed successfully
bool is_licensed = IronPdf.License.IsLicensed;
' Check if a given license key string is valid
Dim result As Boolean = IronPdf.License.IsValidLicense("IRONPDF-MYLICENSE-KEY-1EF01")

' Check if IronPDF is licensed successfully
Dim is_licensed As Boolean = IronPdf.License.IsLicensed
$vbLabelText   $csharpLabel

Note: After adding a license, always remember to clean and republish your application to avoid potential mistakes in deployment.


Step 4: Get started with your project

Follow our tutorial on how to Get Started with IronPDF.


Questions?

If you have any questions, reach out to support@ironsoftware.com

Preguntas Frecuentes

¿Cómo puedo convertir HTML a PDF en C#?

Puedes usar el método RenderHtmlAsPdf de IronPDF para convertir cadenas de HTML en PDFs. También puedes convertir archivos HTML a PDFs usando RenderHtmlFileAsPdf.

¿Cuál es el método para agregar una clave de licencia en una aplicación .NET Core?

En una aplicación .NET Core, puedes agregar tu clave de licencia creando un archivo appsettings.json en el directorio raíz. Agrega una clave 'IronPdf.LicenseKey' con tu clave de licencia como valor. Asegúrate de que el archivo esté configurado como 'Copiar siempre' al directorio de salida.

¿Cómo resuelvo si mi clave de licencia no es reconocida en proyectos ASP.NET?

Un problema conocido afecta a ciertas versiones de IronPDF donde la clave en Web.config no es reconocida. Para resolver esto, visita el artículo de solución de problemas de IronPDF en su sitio web para soluciones más detalladas.

¿Puedo usar IronPDF en Funciones de Azure?

Sí, puedes usar IronPDF en Funciones de Azure. Para el desarrollo local, agrega tu clave de licencia a 'local.settings.json'. Para funciones desplegadas, agréguela en Configuración de Aplicación en el portal de Azure con 'Nombre' como IronPdf.LicenseKey y 'Valor' como tu clave de licencia.

¿Qué pasos debo seguir para verificar si mi clave de licencia de IronPDF está instalada correctamente?

Puedes verificar la instalación de tu clave de licencia de IronPDF usando IronPdf.License.IsValidLicense("YOUR-LICENSE-KEY") o comprobando IronPdf.License.IsLicensed. Asegúrate de que estos devuelvan true para confirmar una aplicación de licencia exitosa.

¿Cómo gestiono las licencias de IronPDF en una aplicación del .NET Framework?

Para gestionar licencias en una aplicación del .NET Framework, agrega tu clave de licencia al archivo Web.Config o App.Config dentro de la sección <appSettings>. Este método aplica la clave globalmente en tu aplicación.

¿Es posible la instalación manual de IronPDF?

Sí, IronPDF puede instalarse manualmente descargando el DLL desde el sitio web de IronPDF y añadiéndolo a tu proyecto o GAC. Asegúrate de incluir 'using IronPdf;' en tus archivos .cs.

¿Qué debo hacer si necesito asistencia con IronPDF?

Si necesitas asistencia con IronPDF, puedes contactar con el soporte en [support@ironsoftware.com](mailto:support@ironsoftware.com) para obtener ayuda.

¿IronPDF admite la integración de claves de licencia en aplicaciones .NET 10 de la misma manera que en .NET Core?

Sí. Las aplicaciones .NET 10 pueden usar IronPDF de la misma manera que los proyectos .NET Core. Puede configurar la clave de licencia en el código mediante IronPdf.License.LicenseKey = "YOUR_KEY" o incluirla en un archivo appsettings.json con la propiedad IronPdf.LicenseKey , asegurándose de que el archivo esté marcado como "Copiar siempre" en el directorio de salida. Estos métodos son compatibles con .NET Framework, .NET Core y .NET 10. ([ironpdf.com](https://ironpdf.com/get-started/license-keys/))

Curtis Chau
Escritor Técnico

Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien ...

Leer más
¿Listo para empezar?
Nuget Descargas 16,133,208 | Versión: 2025.11 recién lanzado