PDF.js Express Web Viewer contains APIs that allow you to export/import annotations from/to a document. Using those APIs and a server, you can set up realtime collaboration easily. This guide provides a simple example that covers:
- Authorizing users
- Exporting/Importing annotation data to/from server
- Setting the user permissions of each annotation on both server and client side
You can find the full version of the sample in your download package,
Setup PDF.js Express for collaboration
To setup PDF.js Express to manage a server and client realtime collaboration.
Realtime collaboration server
To setup a database server to trigger events for create/modify/delete operations.
Realtime collaboration client
To setup a client application to listen or trigger events for create/modify/delete operations.