Update Signatures in Documents

GroupDocs.Signature for Python via .NET provides functionality to update existing signatures in documents. This section demonstrates how to update different types of signatures using Python.

Basic Usage Example

Here’s a simple example showing how to update signatures in a document:

import groupdocs.signature as signature
from groupdocs.signature.options import TextSignOptions

# Initialize signature
with signature.Signature("sample_signed.pdf") as sign:
    # Create update options
    options = TextSignOptions()
    options.text = "Updated Signature Text"
    
    # Update signatures
    result = sign.update(options)
    
    if result.updated_count > 0:
        print(f"Updated {result.updated_count} signatures")
    else:
        print("No signatures were updated")

The following articles in this section provide detailed examples for updating specific types of signatures: