This sample is a backend NodeJS Express server to help with loading document with both WebViewer Server and PSPDFkit server
The architecture between WebViewer Server and PSPDFKit server is quite different. In this example the NodeJS backend is utilized to generate auth tokens which in turn get utilized with the front end to load the document. WebViewer on the other hand uses the NodeJS as a file server to send the document to WebViewer Server for processing
- npm install
- docker-compose up for both WebViewer & PSPDFKit docker files in their respective directories
- confirm both containers are running
- load test documents into documentRepo folder in this repo for tests with WebViewer Server
- navigate to http://localhost:5000/dashboard/documents and upload test documents for PSPDFKit server
- refer to front end code to hook in the Viewing Components