LegendOfTheFox / PDFServerBackedSamples

NodeJS backend with PDFTron WebViewer Server and PSPDFKit server hooked up

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF Server Backends

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

Getting Started

  • 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

About

NodeJS backend with PDFTron WebViewer Server and PSPDFKit server hooked up


Languages

Language:JavaScript 96.0%Language:EJS 3.3%Language:CSS 0.7%