Skip to content

This example shows how to integrate PSPDFKit for Web into an GatsbyJS app. https://pspdfkit.com/

License

Notifications You must be signed in to change notification settings

PSPDFKit/pspdfkit-web-example-gatsbyjs

Repository files navigation

PSPDFKit for Web Example – Gatsby.js

This example shows how to integrate PSPDFKit for Web into a GatsbyJS project.

Prerequisites

Support, Issues and License Questions

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/

Getting Started

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

Running the Example

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 🍕

PSPDFKit assets

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!

License

This software is licensed under a modified BSD license.

Contributing

Please ensure you have signed our CLA so that we can accept your contributions.

About

This example shows how to integrate PSPDFKit for Web into an GatsbyJS app. https://pspdfkit.com/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published