Cut, copy, paste, and duplicate annotations in PDF using JavaScript

Nutrient Web SDK 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 NutrientViewer.Configuration#enableClipboardActions to true:

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

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

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