pdftools_sdk.signature_validation.validator

Classes

Validator()

The class to check the validity of signatures

class pdftools_sdk.signature_validation.validator.Validator[source]

Bases: _NativeObject

The class to check the validity of signatures

__init__()[source]
validate(document: Document, profile: Profile, selector: SignatureSelector) → ValidationResults[source]

Validate the signatures of a PDF document

Parameters:
  • document (Document) – The document to check the signatures of

  • profile (Profile) – The validation profile

  • selector (SignatureSelector) – The signatures to validate

Returns:

The result of the validation

Return type:

ValidationResults

Raises:
add_constraint_handler(handler: ConstraintFunc) → None[source]

Add handler for the ConstraintFunc event.

Parameters:

handler – Event handler. If a handler is added that is already registered, it is ignored.

remove_constraint_handler(handler: ConstraintFunc) → None[source]

Remove registered handler of the ConstraintFunc event.

Parameters:

handler – Event handler that shall be removed. If a handler is not registered, it is ignored.