Cut, Copy, Paste, and Duplicate Annotations in PDF Using JavaScript

PSPDFKit for Web allows users to perform clipboard actions like cutting, copying, pasting, and duplicating annotations using the keyboard shortcuts Control/Command + X, Control/Command + C, Control/Command + V, and Control/Command + D, respectively.

This feature isn’t turned on by default, so you have to turn it on by setting PSPDFKit.Configuration#enableClipboardActions to true:

PSPDFKit.load({
  // Other options.
  enableClipboardActions: true
});

We recommend you also turn on the undo and redo feature for a better experience with clipboard actions:

PSPDFKit.load({
  // Other options.
  enableClipboardActions: true,
  enableHistory: true
});