How to add a license key in Nutrient Java SDK
This guide provides an overview of how to add the license key to Nutrient Java SDK.
Download the license key
-
Log in to the Nutrient Portal using the credentials you received when purchasing Nutrient. You’ll see the list of all your purchased licenses.
-
Locate your license (e.g. “Nutrient Libraries”) and click the license key button next to Java SDK.
-
A dialog will open showing you a code snippet with your license key.
-
After copying the license key to your project, Nutrient Java SDK is ready to use.
Using the license key
It’s important that you set the license key before using any Nutrient classes.
Call the initialize()
method prior to calling any other SDK method. The method takes your license key as a string:
PSPDFKit.initialize("YOUR_LICENSE_KEY_GOES_HERE");