Interface: AnnotationsPasteEvent

PSPDFKit.AnnotationsPasteEvent

This event is emitted whenever an annotation is pasted.

Example

Get current pasted annotation

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

Members




Members

annotation: AnnotationsUnion

The annotation that was pasted.

Type:

The formField generated for the pasted annotation.

Type:

originalAnnotation: AnnotationsUnion

The original annotation that was cut or copied.

Type:

originalFormField: 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"