1、通过jofdreader调用saveConfigInfoToIni(configKey,configValue)进行手写签批鼠标样式切换

  • 参数说明:
    • configKey:String型,配置项,手写签批鼠标样式配置项为tablet.fullsign.mousecursor
    • configValue:String型,配置值,值为1时,鼠标样式十字,为0时,鼠标样式笔形,为空时,无形
  • 配置项名

    2、退出手写签批模式,切换手型工具

    使用jofdreader.performClick('t_handtool')切换到手型工具

    查看接口调用示例
                                    
    //手写签批鼠标样式切换
    let configKey = document.getElementById('mousecursor_tag').value
    let configValue = document.getElementById('mousecursor_tagVal').value
    jofdreader.saveConfigInfoToIni(configKey,configValue)
                                
                                

    如只设置了setUserId则只要UserId相同,则此用户对此注释有编辑权限。如同时设置了setUserId和setDataTag,则需要UserId,DataTag都相同,此用户才对此注释有编辑权限。

    根据权限增加手写签批内容

    1、设置签批人1

    userid
    DataTag

    2、在阅读器当前打开的文件上,进行签批

    3、设置签批人2

    userid
    DataTag

    4、清空手写/图型批注,通过jofdreader调用clearHandwrittenAnnotation(String type = "")

    功能说明:清空除文本框以外的,当前用户在当前节点的手写、图型等注释。

  • 参数说明:
    • type:手写批注类型,type为空则删除除文本批注以外的手写注释。
  • *无法清除签批人1的签批

    手写批注类型
    查看接口调用示例
                                    
    //设置签批人
    function setUserIdAndDataTag() {
        let userid = document.getElementById('userid').value
        let dataTag = document.getElementById('dataTag').value
        jofdreader.setUserId(userid).then(() => {
            jofdreader.setDataTag(dataTag)
        })
    }
    //删除签批人
    function clearHandwrittenAnnotation() {
        jofdreader.clearHandwrittenAnnotation()
    }
                                
                                

    1、使用颜色盘自定义颜色

    2、通过jofdreader调用saveConfigInfoToIni("tablet.fullsign.usercolor","#FF0000")设置颜色

    颜色

    3、设置签批笔迹像素

    像素大小
    查看接口调用示例
                                    
    function usercolor() {
        let color = document.getElementById('usercolor').value
        jofdreader.saveConfigInfoToIni("tablet.fullsign.usercolor", color)
    }
    
    function userwidth() {
        let width = document.getElementById('userwidth').value
        jofdreader.saveConfigInfoToIni("tablet.fullsign.userwidth", width)
    }
                                
                                

    查看接口调用示例
                                    
    //签字笔细0.5mm
    jofdreader.performClick('t_tablet/signpen_05mm')
    //签字笔粗1mm
    jofdreader.performClick('t_tablet/signpen_1mm')
    //软笔细1mm
    jofdreader.performClick('t_tablet/softpen_1mm')
    //软笔粗3mm
    jofdreader.performClick('t_tablet/softpen_3mm')
    //橡皮擦
    jofdreader.performClick('t_tableteraser')
                                
                                

    通过jofdreader调用getAnnotInfoBy(String param);
    接口说明:此接口根据指定用户ID、环节标识、注释类型、页码范围获取指定注释的信息(人、时间和具体的图片信息、橡皮图章信息、手写信息、文本框内容等等)

    注释信息
    查看接口调用示例
                                    
    function getAnnotInfoBy() {
        let annotInfo = document.getElementById('annotInfo').value
        jofdreader.getAnnotInfoBy(annotInfo).then((data) => {
            alert(JSON.stringify(data))
        })
    }