Class License

  • public final class License
    extends Object
    Allows developers to apply license keys for of IronPDF for Java
    • Constructor Detail

      • License

        public License()
    • Method Detail

      • setLicenseKey

        public static void setLicenseKey​(String licenseKey)
        Sets your license key.

        ***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 or purchase a deployment license from

        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 and

        True if the license key given is valid.
      • isValidLicensed

        public static boolean isValidLicensed​(String licenseKey)
        Determines whether a string license key is valid.

        See for trial, development and commercial deployment licensing options.

        licenseKey - IronPDF license key as a string
        True if the license key given is valid.