GroupDocs.Signature for Python via .NET

Create stamps for PDF

Easily add custom-designed stamps to any part of your documents with GroupDocs.Signature for Python via .NET, offering great flexibility for placement and configuration to meet your business needs.

How to add a stamp to PDF using Python

GroupDocs.Signature provides robust stamp creation tools for enhancing Python via .NET applications. Use it to design and implement custom stamps for your document pages.

  1. Provide the PDF document you want to stamp.
  2. Use StampSignOptions to configure all necessary settings.
  3. Add multiple stamp lines if required.
  4. Apply the stamp and save the updated document.
import groupdocs.signature as sg

def run():

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

        # Set up StampSignOptions with the required stamp details
        options = sg.StampSignOptions()
        options.Height = 180
        options.Width = 180

        # Add one or more lines to the stamp
        outerLine = sg.StampLine()
        outerLine.Text = "* The Best Company *"
        outerLine.TextRepeatType = sg.StampTextRepeatType.FullTextRepeat
        outerLine.Font = sg.SignatureFont()
        outerLine.Font.Size = 12
        outerLine.Font.FamilyName = "Arial"
        outerLine.Height = 22
        outerLine.TextBottomIntent = 6
        outerLine.TextColor = sg.Color.WhiteSmoke
        outerLine.BackgroundColor = sg.Color.DarkSlateBlue
        options.OuterLines.Add(outerLine)

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

Use signatures to secure and improve document integrity

With the GroupDocs.Signature for Python via .NET library, you can seamlessly add signature functionality to your documents. Easily create, modify, verify, or delete custom stamps and other signature types, providing flexibility and security for your document workflows.

Stamp Signatures Powered by GroupDocs.Signature

Complete document signing

Elevate your documents by adding signatures like text, images, barcodes, QR codes, and stamps to any position on any page. Manage embedded metadata and apply digital certificates to protect against unauthorized changes.

Efficient signature search and verification

After signing, use advanced search tools to find all embedded signatures. Easily verify or manage signature data to ensure document integrity.

Edit and customize signatures

Make changes to previously added signatures with ease. Whether you want to change the content, position, size, or color, GroupDocs.Signature for Python via .NET gives you full control to adjust signatures as needed.

Easily remove signatures

If you need to remove signatures, GroupDocs.Signature for Python via .NET offers all the tools necessary to delete any type, including stamps and digital certificates, helping you keep your documents up-to-date and compliant.

How to add custom stamps to documents

This example shows how to create and insert custom stamps with specific text details into a document.

Python

import groupdocs.signature as sg

def run():

    # Provide the document you want to stamp
    with sg.Signature('input.pdf') as signature:

          # Set up the stamp options with your desired settings
          options = sg.StampSignOptions()

          # Define the stamp’s size and placement on the page
          options.Height = 200
          options.Width = 200
          options.VerticalAlignment = sg.VerticalAlignment.Bottom
          options.HorizontalAlignment = sg.HorizontalAlignment.Right
          options.AllPages = True

          # Add outer circular lines with text
          outerLine = sg.StampLine()
          outerLine.Text = "* The best  choice *"
          outerLine.TextRepeatType = sg.StampTextRepeatType.FullTextRepeat
          outerLine.Font = sg.SignatureFont()
          outerLine.Font.Size = 12
          outerLine.Font.FamilyName = "Arial"
          outerLine.Height = 22
          outerLine.TextBottomIntent = 6
          outerLine.TextColor = sg.Color.WhiteSmoke
          outerLine.BackgroundColor = sg.Color.DarkSlateBlue
          options.OuterLines.Add(outerLine)

          # Optionally, add inner square lines
          innerLine = sg.StampLine()
          innerLine.Text = "Company #1"
          innerLine.TextColor = sg.Color.MediumVioletRed
          innerLine.Font = sg.SignatureFont()
          innerLine.Font.Size = 20
          innerLine.Font.Bold = True
          innerLine.Height = 40
          options.InnerLines.Add(innerLine)

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

Overview of GroupDocs.Signature for Python via .NET

GroupDocs.Signature for Python via .NET is a comprehensive tool that lets you insert various signature types into documents, including custom stamps. Supporting over 60 file formats—from PDFs and Word docs to images and ZIP files—you can enhance your documents with text, image, barcode, metadata, digital certificates, and stamps. You also have full control to search, verify, edit, or delete any applied signatures.
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 key features

Find a wide range of options for creating, managing, and removing signatures, giving you complete control over document workflows.

Apply stamps to various document formats

With GroupDocs.Signature API, you can insert custom stamps into more than 60 standard file types. Easily apply stamps anywhere in your documents, improving personalization and tracking.

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