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

The appearance style name of the signature. You can set apperance style from preference\Signature first. It's valid when useStandAppearance set true.

certContext?: LPVOIDType

The PCCERT_CONTEXT info.

certFile?: string

If path of the cert file, please modify according to the actual situation, for example: 'd:\test\foxit.pfx'. You can use the foxit.pfx certificate file in this example, and please install this certificate before using it.

countryOrRegionInfo?: string

The country or region information.

docTimeStamp?: boolean

It's not be used.

emailAddress?: string

The email address.

executeSign?: boolean

If need to sign.

iconType?: FR_SG_ICONTYPE

The style of shookwing graphic on signature appearance.

imageOpacity?: number

The image opacity, 0-100.

imagePath?: string

The image path.

organizationalInfo?: string

The organizational unit info.

organizationName?: string

The organization name.

password?: string

The password of the cert.

permissionType?: FR_SG_PERMISSION

The definition for signature permission.

showFlag?: number

The flag for showing appearance. If useStandAppearance is set to true, it can be set like FR_SIG_SHOW_ALL or FR_SIG_SHOW_NAME, and if useStandAppearance is set to false, the value is set to 0.

signAuthor?: string

The siganture author.

signDictInfo?: SignatureDictInfoType

Data structure for signature dictionary info.

stimateSignData?: number

The length of sign data if you need limit the length. Default is 0.

textDir?: FR_SG_TEXTDIR

The text direction on signature appearance.

timestampURL?: string

The server url of timestamp.

useStandAppearance?: boolean

If use standard style. If need to display specified apperance, it need to be set false.