This event is emitted whenever an annotation is duplicated. You can
do this by pressing Cmd/Ctrl+D
on the keyboard.
Example
instance.addEventListener("annotations.duplicate", (event) => {
const duplicatedAnnotations = event.annotations;
});
Members
Members
The annotation that was duplicated.
Type:
- Array.<AnnotationsUnion>
The newly created form field for the duplicated widget annotation.
Type:
- Array.<PSPDFKit.FormFields.FormField>
The original annotation that was duplicated.
Type:
- Array.<AnnotationsUnion>
The form field of the widget annotation that was duplicated.
Type:
- Map.<string, PSPDFKit.FormFields.FormField>