Interface: AnnotationsDuplicateEvent

PSPDFKit.AnnotationsDuplicateEvent

This event is emitted whenever an annotation is duplicated. You can do this by pressing Cmd/Ctrl+D on the keyboard.

Example

Get current duplicate annotation

instance.addEventListener("annotations.duplicate", (event) => {
  const duplicatedAnnotation = event.annotation;
});

Members




Members

annotation: AnnotationsUnion

The annotation that was duplicated.

Type:

The newly created form field for the duplicated widget annotation.

Type:

originalAnnotation: AnnotationsUnion

The original annotation that was duplicated.

Type:

originalFormField: PSPDFKit.FormFields.FormField

The form field of the widget annotation that was duplicated.

Type: