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 duplicatedAnnotations = event.annotations;
});

Members




Members

annotations: Array.<AnnotationsUnion>

The annotation that was duplicated.

Type:

formFields: Array.<PSPDFKit.FormFields.FormField>

The newly created form field for the duplicated widget annotation.

Type:

originalAnnotations: Array.<AnnotationsUnion>

The original annotation that was duplicated.

Type:

originalFormField: Map.<string, PSPDFKit.FormFields.FormField>

The form field of the widget annotation that was duplicated.

Type: