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.

  1. Log in to our website and visit our Getting Started guides, where you’ll be provided with the license key.

  2. When calling the load method, provide your license key in the license property:

import { load } from '@pspdfkit/nodejs';

const instance = await load({
	license: {
		key: 'your key goes here',
		appName: 'your app name goes here',
	},
});