This example shows how to integrate Nutrient Web SDK into a Svelte app.
PSPDFKit offers support for customers with an active SDK license via https://www.nutrient.io/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://www.nutrient.io/sales/
Clone the repo:
git clone https://github.com/PSPDFKit/pspdfkit-web-example-svelte.git
cd pspdfkit-web-example-svelte
Install the project dependencies with npm
:
npm install
In order to make the Nutrient Web SDK's library available for building, we have to copy the nutrient-viewer-lib/
directory from node_modules/nutrient/dist/
into the public/
directory. This is done in the package.json
script verify-installation
which is executed by dev
script.
We are ready to launch the app! 🎉
npm run dev
You can now open http://localhost:8080/ in your browser and enjoy!
This software is licensed under a modified BSD license.
Please ensure you have signed our CLA so that we can accept your contributions.