GroupDocs.Signature for Python via .NET

Add image signatures to PDF

Use GroupDocs.Signature for Python via .NET to effortlessly incorporate image signatures into various office document formats, including PDF, Word, Excel, and image files. Adding an image of your manager’s signature enhances professionalism, boosting both visual impact and document authenticity.

How to insert an image signature into a PDF file using Python

Use GroupDocs.Signature to give Python via .NET applications the capability to accurately add image signatures anywhere in PDF documents. Easily enhance your product by integrating our solution.

  1. Create a Signature instance with the PDF document.
  2. Configure ImageSignOptions with the desired image for the signature.
  3. Precisely position the image at your chosen location on the document.
  4. Save the signed document to the specified location.
import groupdocs.signature as sg

def run():

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

        # Set up ImageSignOptions with the chosen image for the signature
        options = sg.ImageSignOptions("company_logo.jpg")

        # Position the image at the top-left corner of each page
        options.AllPages = True
        options.Left = 100
        options.Top = 200
        
        # Save the signed document
        result = signature.Sign("output.pdf", options)
pip install groupdocs-signature-net
click to copy
copied
More examples Documentation

Comprehensive document signing features

Our API supports a broad range of signature functionalities. You can easily add, update, remove, search, and validate different types of signatures, including image-based signatures.

Image Signature Integration

Insert images into office documents

Embed electronic signatures and images at any chosen spot within a document. Enhance your documents with images, barcodes, text, metadata, or digital certificates to improve functionality and security.

Signature search and validation

Ensure document integrity by verifying the authenticity of signatures. Retrieve a detailed list of all signatures within a document and assess their individual properties.

Edit existing signatures

Easily update the content, appearance, size, or position of signatures within your documents to meet changing needs.

Remove unnecessary signatures

Our API provides full control, allowing you to remove signatures from most supported file formats whenever needed.

Enhance documents with image signatures

Learn how to embed image signatures in your business documents to enrich content.

Python

import groupdocs.signature as sg

def run():

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

          # Set up image options with the image file path
          options = sg.ImageSignOptions("manager_signature.jpg")

          # Specify the size of the image signature
          options.Width = 100
          options.Height = 100

          # Position the image in the bottom-right corner of the page
          options.VerticalAlignment = sg.VerticalAlignment.Bottom
          options.HorizontalAlignment = sg.HorizontalAlignment.Right

          # Apply padding from the page edges as needed
          options.Margin = sg.Padding()
          options.Margin.Bottom = 120
          options.Margin.Right = 120

          # Optionally, add a border around the image
          options.Border = sg.Border()
          options.Border.Visible = True
          options.Border.Color = sg.Color.OrangeRed
          options.Border.DashStyle = sg.DashStyle.DashDotDot
          options.Border.Weight = 5

          # Rotate the image to ensure proper alignment
          options.RotationAngle = 45

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

Explore GroupDocs.Signature for Python via .NET

GroupDocs.Signature for Python via .NET provides versatile options for embedding image signatures anywhere within your business documents. Streamline workflows by adding images to PDFs, Word documents, Excel sheets, PowerPoint presentations, and popular image formats using our powerful library.
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 features

Discover the different signature types and operations our platform offers.

Embed images in multiple file formats

Use the Python via .NET API to insert images into various document formats. Easily resize, position, select specific pages, and apply image-based signatures, giving you complete control over your document’s layout.

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