This example shows how to integrate PSPDFKit for Web 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 PSPDFKit for Web integration is included at pages/index.vue
with the rest of the example.
In order to make the PSPDFKit for Web's library available for building, we have to copy the pspdfkit-lib/
directory from node_modules/pspdfkit/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://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/
This software is licensed under a modified BSD license.
Please ensure you have signed our CLA so that we can accept your contributions.