Class: DigitalSignatureField

PDFNet. DigitalSignatureField


new DigitalSignatureField()

[Missing documentation]

Members


<static> DocumentPermissions :number

Type:
  • number

<static> FieldPermissions :number

Type:
  • number

<static> SubFilterType :number

Type:
  • number

Methods


<static> createFromField(d)

Parameters:
Name Type Description
d PDFNet.Field
Returns:
A promise that resolves to an object of type: "DigitalSignatureField"
Type
Promise.<PDFNet.DigitalSignatureField>

certifyOnNextSave(in_pkcs12_keyfile_path, in_password)

Parameters:
Name Type Description
in_pkcs12_keyfile_path string
in_password string

certifyOnNextSaveFromBuffer(in_pkcs12_buffer, in_password)

Parameters:
Name Type Description
in_pkcs12_buffer Array
in_password number

certifyOnNextSaveWithCustomHandler(in_signature_handler_id)

Parameters:
Name Type Description
in_signature_handler_id number

clearSignature()


getCertCount()

Returns:
A promise that resolves to an object of type: "number"
Type
Promise.<number>

getContactInfo()

Returns:
A promise that resolves to an object of type: "string"
Type
Promise.<string>

getDocumentPermissions()

Returns:
A promise that resolves to an object of type: "number"
PDFNet.DigitalSignatureField.DocumentPermissions = {
	e_no_changes_allowed : 1
	e_formfilling_signing_allowed : 2
	e_annotating_formfilling_signing_allowed : 3
	e_unrestricted : 4
}
Type
Promise.<number>
Example
Return value enum:
<pre>
PDFNet.DigitalSignatureField.DocumentPermissions = {
	e_no_changes_allowed : 1
	e_formfilling_signing_allowed : 2
	e_annotating_formfilling_signing_allowed : 3
	e_unrestricted : 4
}
</pre>

getLocation()

Returns:
A promise that resolves to an object of type: "string"
Type
Promise.<string>

getReason()

Returns:
A promise that resolves to an object of type: "string"
Type
Promise.<string>

getSDFObj()

Returns:
A promise that resolves to an object of type: "Obj"
Type
Promise.<PDFNet.Obj>

getSignatureName()

Returns:
A promise that resolves to an object of type: "string"
Type
Promise.<string>

getSigningTime(in_date)

Parameters:
Name Type Description
in_date PDFNet.Date

getSubFilter()

Returns:
A promise that resolves to an object of type: "number"
PDFNet.DigitalSignatureField.SubFilterType = {
	e_adbe_x509_rsa_sha1 : 0
	e_adbe_pkcs7_detached : 1
	e_adbe_pkcs7_sha1 : 2
	e_ETSI_CAdES_detached : 3
	e_ETSI_RFC3161 : 4
	e_unknown : 5
	e_absent : 6
}
Type
Promise.<number>
Example
Return value enum:
<pre>
PDFNet.DigitalSignatureField.SubFilterType = {
	e_adbe_x509_rsa_sha1 : 0
	e_adbe_pkcs7_detached : 1
	e_adbe_pkcs7_sha1 : 2
	e_ETSI_CAdES_detached : 3
	e_ETSI_RFC3161 : 4
	e_unknown : 5
	e_absent : 6
}
</pre>

hasCryptographicSignature()

Returns:
A promise that resolves to an object of type: "boolean"
Type
Promise.<boolean>

hasVisibleAppearance()

Returns:
A promise that resolves to an object of type: "boolean"
Type
Promise.<boolean>

isLockedByDigitalSignature()

Returns:
A promise that resolves to an object of type: "boolean"
Type
Promise.<boolean>

setContactInfo(in_contact_info)

Parameters:
Name Type Description
in_contact_info string

setDocumentPermissions(in_perms)

Parameters:
Name Type Description
in_perms number
PDFNet.DigitalSignatureField.DocumentPermissions = {
	e_no_changes_allowed : 1
	e_formfilling_signing_allowed : 2
	e_annotating_formfilling_signing_allowed : 3
	e_unrestricted : 4
}

setFieldPermissions(in_action, in_field_names_list, in_field_names_size)

Parameters:
Name Type Description
in_action number
in_field_names_list string
in_field_names_size number

setLocation(in_location)

Parameters:
Name Type Description
in_location string

setReason(in_reason)

Parameters:
Name Type Description
in_reason string

signOnNextSave(in_pkcs12_keyfile_path, in_password)

Parameters:
Name Type Description
in_pkcs12_keyfile_path string
in_password string

signOnNextSaveFromBuffer(in_pkcs12_buffer, in_password)

Parameters:
Name Type Description
in_pkcs12_buffer Array
in_password number

signOnNextSaveWithCustomHandler(in_signature_handler_id)

Parameters:
Name Type Description
in_signature_handler_id number