Events

Viewer Event Reference

Full list of strongly-typed ViewerEventName values.

Subscribe using addEventListener and unsubscribe using removeEventListener.

Event categories

CategoryEvents
Annotations20
Bookmarks7
Comments8
Crop Area2
Document3
Forms12
History5
Instant1
Page1
Search2
Signatures8
Text Line1
Text Selection1
Toolbar5
View State3

Annotations

EventPayloadTrigger
annotationNote.hover[ { annotationId?: string; pageIndex?: number; nativeEvent?: PointerEvent }, ]Fires when a note annotation is hovered.
annotationNote.press[ { annotationId?: string; pageIndex?: number; nativeEvent?: PointerEvent }, ]Fires when a note annotation is pressed.
annotationPresets.update[AnnotationPresetMap]Fires when annotation preset definitions are updated.
annotations.blur[ImmutableList<Annotation>]Fires when annotation focus is cleared.
annotations.change[]Fires after annotation collections change.
annotations.copy[ImmutableList<Annotation>]Fires after selected annotations are copied.
annotations.create[ImmutableList<Annotation>]Fires after annotations are created.
annotations.cut[ImmutableList<Annotation>]Fires after selected annotations are cut.
annotations.delete[ImmutableList<Annotation>]Fires after annotations are deleted.
annotations.didSave[ImmutableList<Annotation>]Fires after annotations are persisted.
annotations.duplicate[ImmutableList<Annotation>]Fires after annotations are duplicated.
annotations.focus[ImmutableList<Annotation>]Fires when annotations receive focus/selection.
annotations.load[ImmutableList<Annotation>]Fires when annotations are loaded.
annotations.paste[ImmutableList<Annotation>]Fires after annotations are pasted.
annotations.press[AnnotationPressEventPayload]Fires when an annotation press interaction occurs.
annotations.transform[ImmutableList<Annotation>]Fires when annotations are transformed (move/resize).
annotations.update[ImmutableList<Annotation>]Fires after annotations are updated.
annotations.willChange[AnnotationWillChangeEventPayload]Fires before annotation collections change.
annotations.willSave[ImmutableList<Annotation>]Fires before annotations are persisted.
annotationSelection.change[ImmutableList<Annotation>]Fires when the selected annotation set changes.

Bookmarks

EventPayloadTrigger
bookmarks.change[ImmutableList<Bookmark>]Fires after bookmark collections change.
bookmarks.create[ImmutableList<Bookmark>]Fires after bookmarks are created.
bookmarks.delete[ImmutableList<Bookmark>]Fires after bookmarks are deleted.
bookmarks.didSave[ImmutableList<Bookmark>]Fires after bookmarks are persisted.
bookmarks.load[ImmutableList<Bookmark>]Fires when bookmarks are loaded.
bookmarks.update[ImmutableList<Bookmark>]Fires after bookmarks are updated.
bookmarks.willSave[ImmutableList<Bookmark>]Fires before bookmarks are persisted.

Comments

EventPayloadTrigger
comments.change[CommentsChangeEventPayload]Fires after the comment collection changes.
comments.create[CommentListEventPayload]Fires after comments are created.
comments.delete[CommentListEventPayload]Fires after comments are deleted.
comments.didSave[CommentListEventPayload]Fires after comments are persisted.
comments.load[CommentListEventPayload]Fires when comments are loaded.
comments.mention[CommentListEventPayload]Fires when comment mentions are detected.
comments.update[CommentListEventPayload]Fires after comments are updated.
comments.willSave[CommentListEventPayload]Fires before comments are persisted.

Crop Area

EventPayloadTrigger
cropArea.changeStart[CropAreaChangeEventPayload]Fires when a crop area interaction starts.
cropArea.changeStop[CropAreaChangeEventPayload]Fires when a crop area interaction stops.

Document

EventPayloadTrigger
document.change[ { reason: 'load' | 'saveStateChange'; pageCount?: number; hasUnsavedChanges?: boolean; }, ]Fires when document load/save-state transitions occur.
document.load[{ pageCount: number; source?: ViewerDocumentSource }]Fires when a document load completes.
document.saveStateChange[{ hasUnsavedChanges: boolean }]Fires when unsaved-changes state toggles.

Forms

EventPayloadTrigger
formFields.change[ImmutableList<FormField>]Fires after form field definitions change.
formFields.create[ImmutableList<FormField>]Fires after form fields are created.
formFields.delete[ImmutableList<FormField>]Fires after form fields are deleted.
formFields.didSave[ImmutableList<FormField>]Fires after form fields are persisted.
formFields.load[ImmutableList<FormField>]Fires when form fields are loaded.
formFields.update[ImmutableList<FormField>]Fires after form fields are updated.
formFields.willSave[ImmutableList<FormField>]Fires before form fields are persisted.
formFieldValues.didSave[FormFieldValueMap]Fires after form field values are persisted.
formFieldValues.update[FormFieldValueMap]Fires after form field values are updated.
formFieldValues.willSave[FormFieldValueMap]Fires before form field values are persisted.
forms.didSubmit[{ formFieldValues: FormFieldValueMap }]Fires after a form submit lifecycle completes.
forms.willSubmit[{ formFieldValues: FormFieldValueMap }]Fires before a form submit lifecycle starts.

History

EventPayloadTrigger
history.change[HistoryChangeEvent]Fires after history stack state changes.
history.clear[HistoryChangeEvent]Fires when history is cleared.
history.redo[HistoryChangeEvent]Fires when a redo operation is applied.
history.undo[HistoryChangeEvent]Fires when an undo operation is applied.
history.willChange[HistoryChangeEvent]Fires before history stack state changes.

Instant

EventPayloadTrigger
instant.connectedClients.change[unknown[]]Fires when the connected-clients list changes.

Page

EventPayloadTrigger
page.press[ { pageIndex: number; point: Point; nativeEvent: PointerEvent; }, ]Fires when page surface interactions occur.
EventPayloadTrigger
search.stateChange[SearchState]Fires when search state values (query, results, active index) change.
search.termChange[{ term: string; preventDefault: () => void }]Fires when a new search term is requested.

Signatures

EventPayloadTrigger
inkSignatures.change[ImmutableList<StoredSignature>]Fires after ink signature presets change.
inkSignatures.create[ImmutableList<StoredSignature>]Fires after ink signature presets are created.
inkSignatures.delete[ImmutableList<StoredSignature>]Fires after ink signature presets are deleted.
inkSignatures.update[ImmutableList<StoredSignature>]Fires after ink signature presets are updated.
storedSignatures.change[ImmutableList<StoredSignature>]Fires after stored signature presets change.
storedSignatures.create[ImmutableList<StoredSignature>]Fires after stored signature presets are created.
storedSignatures.delete[ImmutableList<StoredSignature>]Fires after stored signature presets are deleted.
storedSignatures.update[ImmutableList<StoredSignature>]Fires after stored signature presets are updated.

Text Line

EventPayloadTrigger
textLine.press[{ line: TextLine; pageIndex: number; nativeEvent?: PointerEvent }]Fires when a text line is pressed.

Text Selection

EventPayloadTrigger
textSelection.change[TextSelection | null]Fires when text selection changes.

Toolbar

EventPayloadTrigger
toolbar.annotationItemsChange[ToolbarItemsChangeEvent]Fires when annotation toolbar items change.
toolbar.documentEditorFooterItemsChange[ToolbarItemsChangeEvent]Fires when document editor footer items change.
toolbar.documentEditorItemsChange[ToolbarItemsChangeEvent]Fires when document editor toolbar items change.
toolbar.inlineTextItemsChange[ToolbarItemsChangeEvent]Fires when inline text selection toolbar items change.
toolbar.itemsChange[ToolbarItemsChangeEvent]Fires when main toolbar items change.

View State

EventPayloadTrigger
viewState.change[ViewState, ViewState]Fires when the full view state object changes.
viewState.currentPageIndex.change[number]Fires when the current page index changes.
viewState.zoom.change[number]Fires when the zoom level changes.

Use this page as the canonical list of typed viewer events and event payload contracts.