Annotate live HTML pages by simply providing URL. This way you can preserve all the animations and any interactive content. Watch the video to see a demo and walkthrough of the project.
The sample uses WebViewer HTML by PDFTron for annotating HTML and Proxy Server by PDFTron for proxying the website from URL.
Please make sure to check the CHANGELOG to ensure versions of WebViewer and WebViewer-HTML are compatible.
We have prepared a single script for installing both client and server.
npm run setup
We have prepared a single script for running both client and server.
npm run start
Alternatively, you can also install and run client and server separately.
- Client app makes the request to the Node.js Express server.
- Node.js Express server serves the endpoint
/pdftron-proxy?url=someurl.com
, - From the
url
query parameter, we start requesting all the website dependencies (HTML, CSS, JS, images). - The server responds back with proxied resources.
- WebViewer then renders out live HTML that can be annotated.