interface SignatureType {
    clearSignatureByIndex: (doc: DocType, index: number) => Promise<boolean>;
    clearSignatureByName: (doc: DocType, fieldName: string) => Promise<boolean>;
    getDocSignatureCount: (doc: DocType) => Promise<number>;
    getSignatureInfoByIndex: (
        doc: DocType,
        index: number,
    ) => Promise<SignatureInfoType>;
    getSignatureInfoByName: (
        doc: DocType,
        name: string,
    ) => Promise<SignatureInfoType>;
    signatureSignByName: (
        fieldName: string,
        doc: DocType,
        signatureInfo: SignatureBaseInfoType,
        saveSignFilePath: string,
        openSignDoc: boolean,
    ) => Promise<boolean>;
}

Implemented by

Properties

clearSignatureByIndex: (doc: DocType, index: number) => Promise<boolean>

清除签名。

Type declaration

    • (doc: DocType, index: number): Promise<boolean>
    • Parameters

      • doc: DocType

        文档。

      • index: number

        签名的索引。

      Returns Promise<boolean>

      • 操作是否成功。
clearSignatureByName: (doc: DocType, fieldName: string) => Promise<boolean>

通过名称清除签名。

Type declaration

    • (doc: DocType, fieldName: string): Promise<boolean>
    • Parameters

      • doc: DocType

        文档。

      • fieldName: string

        签名字段的名称。

      Returns Promise<boolean>

      • 操作是否成功。
getDocSignatureCount: (doc: DocType) => Promise<number>

获取文档的签名数量。

Type declaration

    • (doc: DocType): Promise<number>
    • Parameters

      Returns Promise<number>

      • 签名数量。
getSignatureInfoByIndex: (
    doc: DocType,
    index: number,
) => Promise<SignatureInfoType>

获取签名的基础信息。

Type declaration

getSignatureInfoByName: (
    doc: DocType,
    name: string,
) => Promise<SignatureInfoType>

通过名称获取签名信息。

Type declaration

signatureSignByName: (
    fieldName: string,
    doc: DocType,
    signatureInfo: SignatureBaseInfoType,
    saveSignFilePath: string,
    openSignDoc: boolean,
) => Promise<boolean>

签署文档。

Type declaration

    • (
          fieldName: string,
          doc: DocType,
          signatureInfo: SignatureBaseInfoType,
          saveSignFilePath: string,
          openSignDoc: boolean,
      ): Promise<boolean>
    • Parameters

      • fieldName: string
      • doc: DocType
      • signatureInfo: SignatureBaseInfoType

        签名信息。

      • saveSignFilePath: string
      • openSignDoc: boolean

        是否打开已签署的文档。

      Returns Promise<boolean>