Which product are you using?
PDF.js Express Viewer
PDF.js Express Version
8.7.4
Detailed description of issue
Want to be able to use this viewer without any special server requirements. I just want to use the viewer as a HTML + Javascript library
Expected behaviour
Everything points towards needing node
Does your issue happen with every document, or just one?
N/A
Link to document
N/A
Code snippet
N/A
Hi there,
You should be able to use the viewer without any special server requirements.
In your HTML, you will need access to the node modules. Here you can define a path to the webviewer.min.js file.
<script src="/@pdftron/pdfjs-express/webviewer.min.js" type="module"> </script>
You will also need a way to access the core and ui folders in the lib folder when instantiating the viewer.
WebViewer(
{
path: 'lib',
},
Best Regards,
Darian Chen