Web SDKv1.0.0

PDFViewer.activeTool

The active tool's name — 'selectText' at rest by default, from the moment the viewer goes back to it — or null when no tool is active. A property, read like viewer.scale.
getterPropertiessince 1.0.0

Signature

get activeTool(): ToolName | null

Returns

ToolName | null

Example

TypeScript
const editing = viewer.activeTool === 'editText';

More in PDFViewer