Adding to Your Project
This guide will walk you through adding PSPDFKit for Electron to your Electron project.
Accessing license information — for evaluation
After requesting an evaluation license, follow the PSPDFKit for Electron trial link in the email you received. This will automatically fill in the license information in the following examples on this page.
Accessing license information — for existing customers
- In your web browser, log in to https://customers.pspdfkit.com and navigate to the Your Licenses & Keys page.
- Locate your PSPDFKit for Electron license and click Download PSPDFKit for Electron.
- Follow the instructions in the Install with npm section below.
Install with npm
PSPDFKit for Electron is installed as an npm package. The package is securely hosted on our servers as a tarball, and its URL is unique to each customer and license. For each license, we generate an NPM_KEY, which is what makes a download link work.
Using the latest release:
yarn add https://customers.pspdfkit.com/npm/YOUR_NPM_KEY_GOES_HERE/latest.tar.gz
npm install --save https://customers.pspdfkit.com/npm/YOUR_NPM_KEY_GOES_HERE/latest.tar.gz
Note that when installing the
latest version, you always get the most recent release, so expect a hash mismatch when a new version of PSPDFKit for Electron is released.
latest is similar to having
"pspdfkit": "*" in your
Pinning to a specific version (e.g. 2018.2.0):
yarn add https://customers.pspdfkit.com/npm/YOUR_NPM_KEY_GOES_HERE/2018.2.0.tar.gz
npm install --save https://customers.pspdfkit.com/npm/YOUR_NPM_KEY_GOES_HERE/2018.2.0.tar.gz
This will add a
dependency with the name
pspdfkit to your application’s
We’ve prepared a ready-to-use example project that will help you get started quickly.