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 User Bookmarks sample to show how you can save and load user bookmarks through files with a Node.js backend.
For more information, see this guide.
Before you begin, make sure your development environment includes Node.js.
git clone https://github.com/PDFTron/webviewer-user-bookmarks-nodejs-sample.git
cd webviewer-user-bookmarks-nodejs-sample
npm install
npm start
- Create bookmarks using the
Add Bookmark
button in the bookmarks tab in the left panel - Edit bookmark names by choosing the option in the context menu popup or by double-clicking on the name
- Delete bookmarks using the option in the context menu popup
- The new multi-select mode also allows for deleting multiple bookmarks at the same time
- Bookmarks are automatically saved using the 'userBookmarksChanged' event
See contributing.
See license.