Events

annotationSelectionChange

Detailed compatibility event reference for annotationSelectionChange.

Summary

  • Category: Compatibility
  • Event: annotationSelectionChange
  • Trigger: Fires when selected annotations change.

Payload

{ annotations: PdfAnnotation[] }

Payload fields

FieldTypeRequired
annotationsPdfAnnotation[]Yes

Subscription example

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

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