GroupDocs.Signature for Python via .NET provides functionality to verify various types of signatures in documents. This section demonstrates how to verify different types of signatures using Python.
Basic Usage Example
Here’s a simple example showing how to verify signatures in a document:
importgroupdocs.signatureassignaturefromgroupdocs.signature.optionsimportTextVerifyOptions# Initialize signaturewithsignature.Signature("sample_signed.pdf")assign:# Create verification optionsoptions=TextVerifyOptions()options.text="John Smith"options.match_type=signature.TextMatchType.Contains# Verify signaturesresult=sign.verify(options)ifresult.is_valid:print("Document is valid! All signatures are valid.")else:print("Document is invalid! Some signatures are invalid.")
The following articles in this section provide detailed examples for verifying specific types of signatures: