This example shows how to integrate PSPDFKit for Web into a GatsbyJS project.
PSPDFKit offers support for customers with an active SDK license via https://pspdfkit.com/support/request/
Are you evaluating our SDK? That's great, we're happy to help out! To make sure this is fast, please use a work email and have someone from your company fill out our sales form: https://pspdfkit.com/sales/
Clone the repo:
git clone https://github.com/PSPDFKit/pspdfkit-web-example-gatsbyjs.git
cd pspdfkit-web-example-gatsbyjs
Install the project dependencies:
npm install
We are ready to launch the app! 🎉
To run the app in development mode:
npm run start
To create a production build of the app and serve it:
npm run build
nom run serve
Enjoy 🍕
In order to make the example work, the PSPDFKit assets need to be copied from their original location in ./node_modules/pspdfkit/dist
to ./static
. This is done automatically from a postinstall script in located in ./scripts/copy-pspdfkit-files.js
.
In case copying the files fails, you can copy them manually:
- Copy
./node_modules/pspdfkit/dist/pspdfkit.js
to./static/pspdfkit.js
. - Copy
./node_modules/pspdfkit/dist/pspdfkit-lib/
to./static/pspdfkit-lib/
.
That's it!
This software is licensed under a modified BSD license.
Please ensure you have signed our CLA so that we can accept your contributions.