Events

annotationsChange

Detailed compatibility event reference for annotationsChange.

Summary

  • Category: Compatibility
  • Event: annotationsChange
  • Trigger: Fires when annotation collections are modified.

Payload

{ annotations: PdfAnnotation[]; draft?: boolean }

Payload fields

FieldTypeRequired
annotationsPdfAnnotation[]Yes
draftbooleanNo

Subscription example

function onEvent(payload) {
  console.log('annotationsChange', payload);
}

instance.on('annotationsChange', onEvent);
instance.off('annotationsChange', onEvent);