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
| Field | Type | Required |
|---|---|---|
annotations | PdfAnnotation[] | Yes |
draft | boolean | No |
Subscription example
function onEvent(payload) {
console.log('annotationsChange', payload);
}
instance.on('annotationsChange', onEvent);
instance.off('annotationsChange', onEvent);