Adding the License Key

This guide provides an overview of how to add the license key to the PSPDFKit Java Library.

Download the License Key

  1. Log in to the PSPDFKit Portal using the credentials you received when purchasing PSPDFKit. You’ll see the list of all your purchased licenses.

  2. Locate your license (e.g. “PSPDFKit Libraries”) and click the License Key button next to Java Library.

  3. A dialog will open showing you a code snippet with your license key.

  4. 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");