Adding the License Key

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

Download the License Key

  1. Log in to the PSPDFKit Customer 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 .NET Library.
  3. A dialog will open showing you a code snippet with your license key.
  4. After copying the license key over to your project, the PSPDFKit .NET 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:

1
PSPDFKit.Sdk.Initialize("YOUR_LICENSE_KEY_GOES_HERE");