PDFViewer.isToolEnabled()
Whether a tool may run: covered by the license, not
false in tools, and offered by the mode (Select, Pan and Search in every mode, Sign in FORM_FILL and FULL, the rest in FULL only). toolbar.groups does not affect it. Mirror it in your own chrome instead of duplicating the rule.methodToolssince 1.0.0
Signature
isToolEnabled(tool: ToolName): boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
| tool | ToolName | The tool to ask about. |
Returns
boolean
Example
TypeScript
signButton.hidden = !viewer.isToolEnabled('sign');