Class License
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets your current license key.static boolean
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.
-
Constructor Details
-
License
public License()
-
-
Method Details
-
getLicenseKey
Gets your current license key. Removes PDF watermarks.Get a free development license at https://ironpdf.com/licensing/#trial-license or purchase a deployment license from https://ironpdf.com/licensing/.
- Returns:
- the license key
-
setLicenseKey
Sets your license key.***Please 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/.
- Parameters:
licenseKey
- the license key
-
isLicensed
public static boolean isLicensed()Determines whether this instance of IronPDF is Licensed.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/
- Returns:
- True if the license key given is valid.
-
isValidLicensed
Determines whether a string license key is valid.See https://ironpdf.com/licensing/ for trial, development and commercial deployment licensing options.
- Parameters:
licenseKey
- IronPDF license key as a string- Returns:
- True if the license key given is valid.
-