DigitalSignatureOptions
Options for creating a digital signature on a PDF document.
A digital signature requires a certificate (PFX/P12 file) to cryptographically sign the document. Additional metadata such as signer name, reason, and location can optionally be included. For PAdES-T compliance, configure a to include a trusted timestamp.
from nutrient import DigitalSignatureOptionsMethods
set_certificate_password
def set_certificate_password(self, value: str) -> NoneSets the password to decrypt the PFX/P12 certificate file.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the CertificatePassword property. |
set_certificate_path
def set_certificate_path(self, value: str) -> NoneSets the file path to the PFX/P12 certificate file.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the CertificatePath property. |
set_contact_info
def set_contact_info(self, value: str) -> NoneSets contact information for the signer.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the ContactInfo property. |
set_hash_algorithm
def set_hash_algorithm(self, value: SignatureHashAlgorithm) -> NoneSets the hash algorithm to use for the signature.
Parameters:
| Name | Type | Description |
|---|---|---|
value | SignatureHashAlgorithm | The value to set for the HashAlgorithm property. |
set_location
def set_location(self, value: str) -> NoneSets the location where the document was signed.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the Location property. |
set_reason
def set_reason(self, value: str) -> NoneSets the reason for signing the document.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the Reason property. |
set_signer_name
def set_signer_name(self, value: str) -> NoneSets the name of the person or entity signing the document.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the SignerName property. |
set_timestamp
def set_timestamp(self, value: TimestampConfiguration) -> NoneSets optional timestamp configuration for PAdES-T compliance.
Parameters:
| Name | Type | Description |
|---|---|---|
value | TimestampConfiguration | The value to set for the Timestamp property. |
Properties
certificate_password
@propertydef certificate_password(self) -> strGets the password to decrypt the PFX/P12 certificate file.
Type: str
Read-only property.
certificate_path
@propertydef certificate_path(self) -> strGets the file path to the PFX/P12 certificate file.
Type: str
Read-only property.
contact_info
@propertydef contact_info(self) -> strGets contact information for the signer.
Type: str
Read-only property.
hash_algorithm
@propertydef hash_algorithm(self) -> SignatureHashAlgorithmGets the hash algorithm to use for the signature.
Type: SignatureHashAlgorithm
Read-only property.
location
@propertydef location(self) -> strGets the location where the document was signed.
Type: str
Read-only property.
reason
@propertydef reason(self) -> strGets the reason for signing the document.
Type: str
Read-only property.
signer_name
@propertydef signer_name(self) -> strGets the name of the person or entity signing the document.
Type: str
Read-only property.
timestamp
@propertydef timestamp(self) -> TimestampConfigurationGets optional timestamp configuration for PAdES-T compliance.
Type: TimestampConfiguration
Read-only property.