PSPDFKit for Electron comes with a ready-to-use example app. For more API examples, you might also want to take a look at our PSPDFKit for Web examples.
This example shows how to integrate PSPDFKit for Electron into an Electron application.
Node.js (with npm)
All you have to do to get started is clone this example project, set up PSPDFKit as an npm dependency, and provide your license key:
git clone firstname.lastname@example.org:PSPDFKit/pspdfkit-electron-example.git cd pspdfkit-electron-example echo YOUR_LICENSE_KEY_GOES_HERE > ./config/license-key npm install --save pspdfkit npm install npm start
Important: If you are using Windows, do not use PowerShell. Instead, use Microsoft’s Developer Command Prompt for Visual Studio.
Now that you’re running an Electron application featuring PSPDFKit for Electron, it’s time to start integrating it into your own project.
Please refer to the README in the repo for more information about this example project.