This example shows how to integrate Nutrient Web SDK into a Nuxt.js app.
Clone the repo:
git clone https://github.com/PSPDFKit/pspdfkit-web-example-nuxtjs.git
cd pspdfkit-web-example-nuxtjs
Install the project dependencies with npm
:
npm install
The Nuxt.js component which implements the Nutrient Web SDK integration is included at pages/index.vue
with the rest of the example.
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-sdk/viewer/dist/
into the public/js/
directory. This is done in the package.json
postinstall
script.
We are ready to launch the app! 🎉
# serve with hot reload at localhost:3000
npm run dev
# build for production and launch server
npm run build
npm start
# generate static project
npm run generate
You can now open http://localhost:3000 in your browser and enjoy!
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/
This software is licensed under a modified BSD license.
Please ensure you have signed our CLA so that we can accept your contributions.