GroupDocs.Signature for Python via .NET

Digitally sign PDF

Ensure the security and authenticity of your documents by applying digital certificates through GroupDocs.Signature for Python via .NET. Our solution allows you to easily sign and safeguard your documents with powerful tools.

How to protect PDF with digital certificates in Python

GroupDocs.Signature helps Python via .NET developers secure PDF files by adding digital signatures. Strengthen your business applications with robust document protection features.

  1. Load the PDF file into the Signature class.
  2. Apply a digital certificate and its password to secure the file.
  3. Optionally, add a visual display of the digital signature on the document pages.
  4. Sign the document to prevent unauthorized changes.
import groupdocs.signature as sg

def run():

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

        # Input the digital certificate and its password
        options = sg.DigitalSignOptions("certificate.pfx")
        options.Password = "1234567890"

        # Optionally configure how the signature will look
        options.PageNumber = 1
        options.Left = 50
        options.Top = 50

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

Enhance and secure documents with digital signatures

The GroupDocs.Signature for Python via .NET library is designed to sign all major file formats. Simplify your workflow by easily adding, verifying, updating, or removing different types of signatures.

Core Features of GroupDocs.Signature

Add signatures to your documents

Insert text, image, barcode, QR code, or stamp signatures precisely anywhere in supported documents. You can also manage hidden metadata, like EXIF in images, to ensure document integrity with digital signatures.

Verify and search signatures

After signing, you can easily verify documents to ensure correct processing. Retrieve and manage all signatures within your files with powerful search capabilities.

Edit existing signatures

Most signatures can be fully customized. You can edit text, move elements, change colors, adjust sizes, and more to fit your needs.

Remove unnecessary signatures

Our solution supports complete signature management, allowing you to delete signatures, including digital certificates, from any document when needed.

Protect documents with digital signatures

Learn how to secure your documents by applying digital signatures to prevent unauthorized modifications.

Python

import groupdocs.signature as sg

def run():

    # Load the document to be signed
    with sg.Signature('input.pdf') as signature:

        # Use a valid digital certificate with its corresponding password
        options = sg.DigitalSignOptions("certificate.pfx")
        options.Password = "1234567890"

        # Add any additional text information if needed
        options.Reason = "Security issue"
        options.Contact = "John Smith"
        options.Location = "Office D.W."

        # Include an image or other options for visual representation of the signature
        options.ImageFilePath = "image.png"
        options.AllPages = True
        options.VerticalAlignment = sg.VerticalAlignment.Center
        options.HorizontalAlignment = sg.HorizontalAlignment.Left
        options.Width = 60
        options.Height = 80

        options.Margin = sg.Padding()
        options.Margin.Bottom = 10
        options.Margin.Right = 10

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

What is GroupDocs.Signature for Python via .NET?

GroupDocs.Signature for Python via .NET is a comprehensive signing tool that supports a wide array of document processing tasks. It allows you to add text, images, digital certificates, and stamps to over 60 file formats—including PDFs, MS Office files, images, and ZIPs. With GroupDocs.Signature for Python via .NET, you can also search for, verify, update, or remove signatures whenever needed.
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.

Explore our key features

We offer a broad range of signature options and powerful document operations.

Sign documents across multiple formats

With Python via .NET API, you can process over 60 different formats, adding signatures, applying digital certificates for security, and managing signatures across various pages.

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