Search results

ContextMenuSettings API in JavaScript PDF Viewer API control

The ContextMenuSettings is used to show the context menu of PDF document.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
// Change the settings of the context menu option.
 viewer.contextMenuOption = "RightClick";
 viewer.appendTo("#pdfViewer");

Properties

contextMenuAction

string

Defines the context menu action.

Defaults to RightClick

contextMenuItems

ContextMenuItem[]

Defines the context menu items should be visible in the PDF Viewer. @default []