Interface: AnnotationsPasteEvent

PSPDFKit.AnnotationsPasteEvent

This event is emitted whenever an annotation is pasted.

Example

Get current pasted annotation

instance.addEventListener("annotations.paste", (event) => {
  const pastedAnnotations = event.annotations;
});

Members




Members

annotations: Array.<AnnotationsUnion>

The annotation that was pasted.

Type:

formFields: Array.<PSPDFKit.FormFields.FormField>

The formField generated for the pasted annotation.

Type:

originalAnnotations: Array.<AnnotationsUnion>

The original annotation that was cut or copied.

Type:

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

The form field associated with the original widget annotation that was cut or copied.

Type:

previousAction: "COPY"|"CUT"

The action that was taken on the original annotation. This can be CUT or COPY.

Type:
  • "COPY" | "CUT"