ComPDFKit Web SDK
    Preparing search index...

    Function setToolMode

    • Switches the tool of the active viewer. When the tool belongs to a toolbar group, that group is activated first.

      Parameters

      • toolName: string

        The tool name.

      • Optionaloptions: { continueAdding?: boolean }

        Tool options.

        • OptionalcontinueAdding?: boolean

          Keeps the signature field tool active after a field is created, instead of returning to the selection tool. Applies until the tool changes.

      Returns void

      instance.UI.setToolMode('AnnotationCreateRectangle');