TextVerifyOptions class

TextVerifyOptions class

Keeps options to verify document Text signature.

Learn more:

The TextVerifyOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the TextVerifyOptions with default values.
init Initializes a new instance of the TextVerifyOptions with verification text.
init Initializes a new TextVerifyOptions instance with the text to verify and the signature implementation type.

Properties

Property Description
form_text_field_title The title of the form field to verify. If set, the text will be found only in text form fields.
form_text_field_type The type of form field to verify; if set, text will be found only in text form fields.
match_type The text match type verification.
signature_id The Text Signature ID to verify. Must be greater than zero; supported only for PDF documents.
signature_implementation The type of signature to be verified.
text The signature text to verify.
all_pages The flag indicating whether each document page should be verified. By default the value is True. (inherited from VerifyOptions)
extensions The additional extensions for alternative signature options verification. (inherited from VerifyOptions)
is_valid The valid property flag. (inherited from VerifyOptions)
page_number The document page number to be verified; if not set, all pages of the document are verified for the first occurrence (minimum value is 1). (inherited from VerifyOptions)
pages_setup The page options to specify pages to be verified. (inherited from VerifyOptions)
shape_position The shape position in the document layout used for verifying signatures in headers/footers. (inherited from VerifyOptions)

Example

from groupdocs.signature import Signature
from groupdocs.signature.options import TextVerifyOptions

def verify_text_signature():
    with Signature("signed.pdf") as signature:
        options = TextVerifyOptions("John Smith")
        result = signature.verify(options)
        print(f"Document is signed by John Smith: {result.is_valid}")

if __name__ == "__main__":
    verify_text_signature()

Guides

Task guides that use TextVerifyOptions:

See Also