How to add a license key in Nutrient Java SDK
This guide provides an overview of how to add the license key to the PSPDFKit Java Library.
Download the License Key
-
Log in to the PSPDFKit Portal using the credentials you received when purchasing PSPDFKit. You’ll see the list of all your purchased licenses.
-
Locate your license (e.g. “PSPDFKit Libraries”) and click the License Key button next to Java Library.
-
A dialog will open showing you a code snippet with your license key.
-
After copying the license key to your project, the PSPDFKit Java Library is ready to use.
Using the License Key
It’s important that you set the license key before using any PSPDFKit 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");