public final class License extends Object
Constructor and Description |
---|
License() |
Modifier and Type | Method and Description |
---|---|
static String |
getLicenseKey()
Gets your current license key.
|
static boolean |
isLicensed()
Determines whether this instance of IronPDF is Licensed.
|
static boolean |
isValidLicensed(String licenseKey)
Determines whether a string license key is valid.
|
static void |
setLicenseKey(String licenseKey)
Sets your license key.
|
public static String getLicenseKey()
Get a free development license at https://ironpdf.com/licensing/#trial-license or purchase a deployment license from https://ironpdf.com/licensing/.
public static void setLicenseKey(String licenseKey)
***Recommended to set license key before calling any IronPdf function.***
You will need to add a valid license key to perform any IronPdf operations beyond basic testing.
Adding a valid license key removes PDF watermarks and allows advanced functionality.
Get a free development license at https://ironpdf.com/licensing/#trial-license or purchase a deployment license from https://ironpdf.com/licensing/.
licenseKey
- the license keypublic static boolean isLicensed()
Will return false unless a setLicenseKey(String)
is set to a valid trial or full license key in IronPdf.License.LicenseKey,
Web.Config , App.Config or appsettings.json in .Net Core.
See https://ironpdf.com/licensing/ and https://ironpdf.com/docs/license/license-keys/
public static boolean isValidLicensed(String licenseKey)
See https://ironpdf.com/licensing/ for trial, development and commercial deployment licensing options.
licenseKey
- IronPDF license key as a stringCopyright © 2022–2023 Iron Software. All rights reserved.