GroupDocs.Signature for Python via .NET

Generate barcodes for PDF

With GroupDocs.Signature for Python via .NET, you can place barcodes in your business documents wherever needed. Our solution provides flexible options for barcode signature customization.

Steps to generate and insert a barcode in PDF

GroupDocs.Signature allows you to generate and embed barcodes in PDF documents quickly and easily. Supporting more than 60 barcode formats, Python via .NET applications can seamlessly add barcode signing functionality by integrating our library.

  1. Provide the PDF file or stream for processing.
  2. Assign the barcode text to the BarcodeSignOptions object.
  3. Adjust barcode options, such as position and size.
  4. Save the document with the embedded barcode.
import groupdocs.signature as sg

def run():

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

        # Use BarcodeSignOptions to add a barcode to the document
        options = sg.BarcodeSignOptions('Business data')

        # Set the barcode type and configure its properties
        options.EncodeType = sg.BarcodeTypes.Code128
        options.Left = 50
        options.Top = 150

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

Enhance your documents with advanced signature features

The GroupDocs.Signature for Python via .NET library provides comprehensive solutions for signing and processing documents in commonly used formats. You can easily add, modify, verify, or remove various signature types to fit your needs.

Key Features of GroupDocs.Signature

Flexible document signing

Sign any page in supported documents with text, images, barcodes, QR codes, or stamps. Add hidden metadata like EXIF data in images and ensure content protection with digital certificates to prevent unauthorized changes.

Search and verify signatures

Our tool ensures the integrity of your documents by enabling signature verification. You can also retrieve a full list of all signatures in a document for easy management.

Edit signatures easily

Modify existing signatures effortlessly. Adjust text, reposition elements, or change colors to suit your document’s needs.

Effortlessly remove signatures

With full CRUD functionality, GroupDocs.Signature for Python via .NET makes it easy to remove any unwanted or outdated signatures from your documents.

Create and place a barcode signature

This example demonstrates how to insert a custom barcode into a PDF document.

Python

import groupdocs.signature as sg

def run():

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

        # Set the barcode text and signature options
        options = sg.BarcodeSignOptions('Accepted')
        options.EncodeType = sg.BarcodeTypes.Code39FullASCII

        # Choose the position for the barcode on the page
        options.VerticalAlignment = sg.VerticalAlignment.Top
        options.HorizontalAlignment = sg.HorizontalAlignment.Left

        # Set padding between the barcode and page edge
        options.Margin = sg.Padding()
        options.Margin.Top = 180
        options.Margin.Right = 20

        # Specify the color of the barcode bars
        options.ForeColor = sg.Color.Red

        # Choose the font style for the barcode message
        options.Font = sg.SignatureFont()
        options.Font.Size = 12
        options.Font.FamilyName = 'Arial'

        # Set the position of the message text
        options.CodeTextAlignment = sg.CodeTextAlignment.Above

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

About GroupDocs.Signature for Python via .NET

GroupDocs.Signature for Python via .NET is a powerful document signing tool that supports a wide range of signature types, including text, images, barcodes, digital certificates, and stamps. Compatible with over 60 file formats, such as PDF, MS Office, images, ZIP, and more, it not only allows you to apply signatures but also lets you search, verify, modify, or remove them as 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 wide array of signature options and operations for your document needs.

Sign documents in multiple formats

The Python via .NET API supports signing more than 60 file formats, allowing you to add various types of signatures to any page or specific location within your documents.

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