Framework Agnostic Setup
This project sample uses React as the front-end framework, but you may wish to use (or not use) a different framework. This section shows how to setup the front-end agnostic of any framework:
Prerequisites
NPM packages
Copying resources to public/ folder
There are several directories that need to be copied and served locally in your application.
There are two folders you need to copy:
node_modules/@pdftron/webviewer/public
node_modules/@pdftron/webviewer-bim/dist
cp -R ./node_modules/@pdftron/webviewer/public public/webviewer/lib
cp -R ./node_modules/@pdftron/webviewer-bim/dist public/webviewer-bimSee scripts/copy-webviewer-files.js for a simple script to do this.
Afterwards the folder structure will look something like:
Sample code
Last updated
Was this helpful?