PrizmDoc Viewer v13.20 Release - Updated
API Reference / E-Signature Controls / Module: form-tools
In This Topic
    Module: form-tools
    In This Topic

    Module: form-tools

    Manages the form tools. Selecting a tool determines how the mouse interacts with the document. For example, selecting the Pan tool allows the user to scroll the document by clicking on it and dragging the mouse. Selecting the Signature tool allows the user to use the mouse to create a signature field. After a signature field is added, the Pan tool is automatically selected. The user can click a field tool twice to put it into "sticky" state so that the tool remains selected after adding a field.

    var FormTools = require('form-tools.js');
    // a generic Viewer constructor
    function Viewer(opts) {
        var myFormTools = FormTools(this, {
            elem: document.getElementById('myFormTools')

    (require("form-tools"))(viewer, options)

    Creates the form tools UI module.

    Name Type Description
    viewer Core

    The core viewer to which the module will attach.

    options Object

    An options object.

    Name Type Description
    elem HTMLElement

    The element in which the module UI will be inserted.



    Destroys the module.

    Documentation generated by JSDoc 3.5.5 on Tue Apr 19 2022 13:59:12 GMT-0400 (Eastern Daylight Time)