ComPDFKit Web SDK
    Preparing search index...

    Function disableTools

    • Disables tools; without arguments, all annotation creation tools. When the current tool is disabled, the selection tool is activated. A single string is accepted too.

      Parameters

      • OptionaltoolNames: string | string[]

        A tool name or an array of them.

      Returns void

      const { ToolNames } = instance.Core.Tools;
      instance.UI.disableTools([ToolNames.FREEHAND, ToolNames.ERASER]);