pdftools_sdk.pdf.signed_signature_field

Classes

SignedSignatureField(handle)

A base class for signature fields that have been signed

class pdftools_sdk.pdf.signed_signature_field.SignedSignatureField(handle)[source]

Bases: SignatureField, ABC

A base class for signature fields that have been signed

The existence of a signed signature field does not imply that the signature is valid. The signature is not validated at all.

property name: str | None

The name of the person or authority that signed the document

This is the name of the signing certificate.

Note: The name of the signing certificate can only be extracted for signatures conforming to the PAdES or PDF standard and not for proprietary/non-standard signature formats. For non-standard signature formats, the name as stored in the PDF is returned.

Returns:

Optional[str]

Raises:

StateError – If the object has already been closed

property date: datetime | None

The date and time of signing

This represents the date and time of signing as specified in the signature. For signatures that contain a time-stamp, the trusted time-stamp time is returned.

Note: The value can only be extracted for signatures conforming to the PAdES or PDF standard and not for proprietary/non-standard signature formats. For non-standard signature formats, the date as stored in the PDF is returned.

Returns:

Optional[datetime]

Raises:

StateError – If the object has already been closed

property revision: Revision

The document revision

The revision (version) of the document that the signature signs.

Returns:

pdftools_sdk.pdf.revision.Revision

Raises: