Events and Notifications in JavaScript Viewer

Hook into JavaScript events dispatched by the PDF viewer to trigger workflows and automations or to customize behavior.

PSPDFKit SDKs are deployed in some of the world’s most popular applications, such as those made by PlanGrid, Disney, DocuSign, Dropbox, IBM, and Lufthansa.

Key Capabilities

  • Annotation – Intercept changes originating from the UI or server

  • Forms – Trigger actions in sync with form field inputs

  • Text selection – Retrieve text or subscribe to change events

  • Bookmarks – Dispatched when created, edited, or deleted

  • Events – Hook into events that dispatch whenever an action occurs

  • Customizable – Configure UI behavior, hide buttons, and more

Guides for Events and Notifications

Annotation Events
Learn about the events dispatched for annotation changes

Form Events
How to detect user input in form fields

Text Selection Events
How to retrieve selected text and text located within a selection range

Bookmark Events
How to detect when a bookmark is created, updated, or deleted

Events
Learn about the events that are dispatched every time an action occurs

Free Trial

  • Unlimited trial usage

  • Guidance and tech support from developers

  • Get started