Class License

java.lang.Object
com.ironsoftware.ironpdf.License

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

    • License

      public License()
  • Method Details

    • getLicenseKey

      public static String 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

      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 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

      public static boolean isValidLicensed(String licenseKey)
      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.