Adding the License Key
To use our SDK without seeing a watermark added to documents, request a license key and provide it to the SDK when loading a document. If you don’t yet have a license key, you can proceed by not setting one, which allows you to start PSPDFKit in trial mode.
There are two steps involved in this.
-
Log in to our website and visit our Getting Started guides, where you’ll be provided with the license key.
-
When calling the
load
method, provide your license key in thelicense
property:
import { load } from '@pspdfkit/nodejs'; const instance = await load({ license: { key: 'your key goes here', appName: 'your app name goes here', }, });