This event is emitted whenever an annotation is pasted.
Example
instance.addEventListener("annotations.paste", (event) => {
const pastedAnnotations = event.annotations;
});
Members
Members
The annotation that was pasted.
Type:
- Array.<AnnotationsUnion>
The formField generated for the pasted annotation.
Type:
- Array.<PSPDFKit.FormFields.FormField>
The original annotation that was cut or copied.
Type:
- Array.<AnnotationsUnion>
The form field associated with the original widget annotation that was cut or copied.
Type:
- Map.<string, PSPDFKit.FormFields.FormField>
The action that was taken on the original annotation.
This can be CUT
or COPY
.
Type:
- "COPY" | "CUT"