GroupDocs.Signature for Python via .NET

Easily add text signatures to PDF

Seamlessly integrate custom text signatures into your documents using GroupDocs.Signature for Python via .NET. Simplify your workflows with flexible signature customization options.

How to create PDF text signatures with Python

GroupDocs.Signature enables easy text signature integration in PDF files within Python via .NET applications. Quickly add functionality to your products with this solution.

  1. Provide the PDF document to the Signature constructor.
  2. Create TextSignOptions with your signature text.
  3. Set the visual properties of the signature.
  4. Insert the signature onto the desired pages of the document.
import groupdocs.signature as sg

def run():

    # Initialize the Signature with the document path
    with sg.Signature('input.pdf') as signature:

        # Set up TextSignOptions with your desired signature text
        options = sg.TextSignOptions("Approved")

        # Choose the color and font for the signature
        options.ForeColor = sg.Color.Red
        options.Font = sg.SignatureFont()
        options.Font.Size = 12
        options.Font.FamilyName = "Comic Sans MS"

        # Apply the text signature to the document
        result = signature.Sign("output.pdf", options)
pip install groupdocs-signature-net
click to copy
copied
More examples Documentation

Complete text signature management

GroupDocs.Signature for Python via .NET helps you manage document workflows by adding custom text signatures to popular formats. Easily control the look, placement, and content of signatures to suit your needs.

Discover GroupDocs.Signature Features

Flexible document signatures

Add various signature types—text, images, barcodes, QR codes, and stamps—to any document page. Use metadata to include hidden information and secure your files with digital certificates.

Verify and search signatures

Use advanced tools to check the integrity of your signed documents. Search and analyze all signatures in a file for further validation.

Edit or remove signatures

Easily update the content, appearance, or placement of existing signatures. Remove outdated signatures to keep your documents current.

Specialized text signatures

Apply document-specific text signatures, like watermarks for Word files or stamps for PDFs, adding an extra level of control and customization.

Add text signatures to documents

Learn how to embed text signatures into documents to streamline your processes.

Python

import groupdocs.signature as sg

def run():

    # Select the document to sign
    with sg.Signature('input.pdf') as signature:

          # Set up text options with the desired content
          options = sg.TextSignOptions("Rescheduled to 03/04/2025")

          # Define the size and placement of the signature
          options.Left = 100
          options.Top = 180
          options.Width = 230
          options.Height = 30

          # Set padding from page edges
          options.Margin = sg.Padding()
          options.Margin.Top = 20
          options.Margin.Right = 20

          # Choose text color and font style
          options.ForeColor = sg.Color.Red
          options.Font = sg.SignatureFont()
          options.Font.Size = 12
          options.Font.FamilyName = "Comic Sans MS"

          # Add a border around the text signature
          options.Border = sg.Border()
          options.Border.Color = sg.Color.Red
          options.Border.DashStyle = sg.DashStyle.DashLongDashDot
          options.Border.Transparency = 0.5
          options.Border.Visible = True
          options.Border.Weight = 2

          # Customize the background if needed
          options.Background = sg.Background()
          options.Background.Color = sg.Color.Yellow
          options.Background.Transparency = 0.8

          # Optionally save the signature as an image for compatibility
          options.SignatureImplementation = sg.TextSignatureImplementation.Image

          # Save the document with the embedded signature
          result = signature.Sign("output.pdf", options)
pip install groupdocs-signature-net
click to copy
copied
More examples Documentation

Explore the power of GroupDocs.Signature for Python via .NET

GroupDocs.Signature for Python via .NET offers a comprehensive platform for embedding customizable text signatures, making document workflows smoother. Personalize the content and appearance of signatures across documents to boost efficiency and enhance document management.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Signature for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Advanced signature features

Our API supports complete lifecycle management for seven signature types, allowing you to create, manage, verify, and customize your signatures with ease.

Embed text signatures in multiple formats

With the Python via .NET API, you can add text signatures to various Office documents, giving you full control over the document lifecycle and improving security.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English