⚠️ Repository Moved
This repository has been moved to https://github.com/PSPDFKit/nutrient-web-examples/tree/main/examples/webpack.
Please update your bookmarks and issues accordingly.This repo is now archived and will no longer receive updates.
This example shows how to build a PSPDFKit for Web web application with webpack.
This example uses the Standalone version of PSPDFKit for Web distributed as an npm package.
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-webpack.git
cd pspdfkit-web-example-webpackInstall the project dependencies with npm:
npm installWe are ready to launch the app! 🎉
npm run startYou can now open http://localhost:8080 in your browser and enjoy!
Upload a PDF either via the Select File button at top-left or by dropping a PDF into the page.
We put a sample PDF document in the assets folder of this project for you to try!
For further instructions please refer to our online guide available at https://www.nutrient.io/guides/web/current/standalone/adding-to-your-project#toc_install-with-npm
To run the app in development mode run
npm run start:devThe webpack configuration file is located at ./config/webpack.js.
This software is licensed under a modified BSD license.
Please ensure you signed our CLA so we can accept your contributions.