Web SDKv1.0.0

PDFViewer.deactivateTool()

Put the active tool away and go back to the resting tool (defaultTool, Select by default); with the resting tool active, put down what is selected — an annotation picked up, the text Select selected. Edit Text with edits pending writes them first, as Done does, and the promise resolves once the tool is away; a refused write keeps the tool (activeTool tells). With nothing pending the tool is away before the call returns.
methodToolssince 1.0.0

Signature

deactivateTool(): Promise<void>

Returns

Promise<void>

Throws

  • INVALID_STATE after destroy().

Example

TypeScript
await viewer.deactivateTool();

More in PDFViewer