SignatureInfo

const signatureBaseInfo = {
signAuthor: 'Foxit JSPlugin SDK',
organizationName: 'Foxit',
organizationalInfo: 'Foxit Software Development',
emailAddress: 'support@foxitsoftware.com',
countryOrRegionInfo: 'China',
signDictInfo: {
name: 'Foxit JSPlugin SDK',
reason: 'As a Signature Sample',
location: 'Fuzhou',
filter: 'Adobe.PPKLite',
contactInfo: 'Foxit'
},
showFlag: 0x001,
iconType: 0,
textDir: 0,
permissionType: 0,
imagePath: 'C:\\Users\\Public\\Pictures\\Sample.jpg',
imageOpacity: 100,
stimateSignData: 0,
docTimeStamp: false,
certContext: null,
password: 'password',
appearance: 'C:\\Users\\Public\\Pictures\\Sample.jpg',
useStandAppearance: false,
timestampURL: 'http://xx.xx.xx',
certFile: 'C:\\Users\\Public\\Pictures\\Sample.jpg',
executeSign: false
};
interface SignatureBaseInfoType {
    appearance?: string;
    certContext?: LPVOIDType;
    certFile?: string;
    countryOrRegionInfo?: string;
    docTimeStamp?: boolean;
    emailAddress?: string;
    executeSign?: boolean;
    iconType?: FR_SG_ICONTYPE;
    imageOpacity?: number;
    imagePath?: string;
    organizationalInfo?: string;
    organizationName?: string;
    password?: string;
    permissionType?: FR_SG_PERMISSION;
    showFlag?: number;
    signAuthor?: string;
    signDictInfo?: SignatureDictInfoType;
    stimateSignData?: number;
    textDir?: FR_SG_TEXTDIR;
    timestampURL?: string;
    useStandAppearance?: boolean;
}

Properties

appearance?: string

签名的外观样式名称。你可以先在“偏好设置\Signature”中设置外观样式。当 useStandAppearance 设置为 true 时有效。

certContext?: LPVOIDType

PCCERT_CONTEXT 信息。

certFile?: string

证书文件的路径,请根据实际情况修改,例如:'d:\test\foxit.pfx'。你可以使用此示例中的 foxit.pfx 证书文件,并请在使用前安装该证书。

countryOrRegionInfo?: string

国家或地区信息。

docTimeStamp?: boolean

未使用。

emailAddress?: string

电子邮件地址。

executeSign?: boolean

是否需要执行签名。

iconType?: FR_SG_ICONTYPE

签名外观上图形(图标)的样式。

imageOpacity?: number

图像不透明度,0-100。

imagePath?: string

图像路径。

organizationalInfo?: string

组织单位信息。

organizationName?: string

组织名称。

password?: string

证书密码。

permissionType?: FR_SG_PERMISSION

签名权限的定义。

showFlag?: number

控制显示外观的标志。如果 useStandAppearance 设置为 true,可以设置为 FR_SIG_SHOW_ALL 或 FR_SIG_SHOW_NAME;如果 useStandAppearance 设置为 false,则该值设置为 0。

signAuthor?: string

签名作者。

signDictInfo?: SignatureDictInfoType

签名字典信息的数据结构。

stimateSignData?: number

如果需要限制签名数据长度,则为签名数据的长度。默认值为 0。

textDir?: FR_SG_TEXTDIR

签名外观上的文本方向。

timestampURL?: string

时间戳服务器的 URL。

useStandAppearance?: boolean

是否使用标准样式。如果需要显示指定的外观,需要将其设置为 false。