WebViewer is a powerful JavaScript-based PDF Library that's part of the PDFTron PDF SDK. It allows you to view and annotate PDF files on your web app with a fully customizable UI.
This is a WebViewer sample to show how you can construct a real time collaboration service using the WebViewer Collaboration Modules
The bulk of the work is setting up the resolvers to talk to the SQL database. Documentation about resolvers can be found here.
Before you begin, make sure your development environment includes Node.js.
git clone https://github.com/PDFTron/webviewer-collab-sql-sample.git
cd webviewer-collab-sql-sample
npm install
Start the server
npm run start-server
Start the client
npm run start-client
- Open browser window in incognito mode and go to port 8000
- Create annotations with annotations tools in the header
- See the changes being applied in real time in other windows
- You can access the real time server from a different device in the same network via replacing
localhost
in your URL to the server's IP address.
See contributing.
See license.