GroupDocs.Signature for .NET

Generate barcode for PDF documents

Utilize GroupDocs.Signature for .NET to place barcodes anywhere within your business documents. Our API offers extensive customization options for barcode signatures.

Steps to generate and embed a barcode in PDF file

GroupDocs.Signature facilitates the generation of barcodes in numerous popular formats and their placement on PDF pages. Supporting over 60 barcode types, .NET applications can be effortlessly augmented with barcode signing functionalities by integrating our library.

  1. Supply the PDF file or stream for processing.
  2. Pass the barcode text to the BarcodeSignOptions instance.
  3. Tailor barcode options such as position, size, etc.
  4. Persist the file with the newly appended barcode.
// Instantiate a new Signature object with the document path
using (Signature signature = new Signature("input.pdf"))
{
    // Employ BarcodeSignOptions to append a barcode to the document
    BarcodeSignOptions options = new BarcodeSignOptions("Business data")
    {
        // Configure the barcode type and additional properties
        EncodeType = BarcodeTypes.Code128,
        Left = 50,
        Top = 150
    };

    // Persist the signed file
    SignResult result = signature.Sign("output.pdf", options);
}
dotnet add package GroupDocs.Signature
click to copy
copied
More examples Documentation

Enhance and safeguard your documents with advanced signature capabilities

The GroupDocs.Signature for .NET library is engineered to facilitate comprehensive document signing and processing across widely used file formats. With ease, you can add, adjust, verify, or remove different types of signatures.

Key Features of GroupDocs.Signature

Versatile document signing

Efficiently sign any page within supported documents using text, images, barcodes, QR codes, or stamps. Additionally, embed hidden metadata, such as EXIF data in images, or secure your document’s content against unauthorized alterations using digital certificates.

Comprehensive signature search and verification

Our tool offers robust functionality for working with signed documents. Ensure the integrity of your documents by verifying signatures, and easily retrieve a comprehensive list of all signatures within a document through our search feature.

Edit signatures with ease

Nearly all previously applied signatures can be modified. Conveniently update text, adjust positioning, or change colors to meet your needs.

Efficient signature deletion

Our approach fully supports CRUD operations for signatures, allowing for the swift removal of any unwanted or outdated signatures from your documents.

How to generate a barcode signature

This example shows how to embed a customized barcode on PDF document pages.

C#

using (Signature signature = new Signature("input.pdf"))
{
    // Formulate signature options with the desired text
    BarcodeSignOptions options = new BarcodeSignOptions("Accepted")
    {
        EncodeType = BarcodeTypes.Code39FullASCII,

        // Determine the relative barcode position on the page
        VerticalAlignment = Domain.VerticalAlignment.Top,
        HorizontalAlignment = Domain.HorizontalAlignment.Left,

        // Define the barcode padding from the page edge
        Margin = new Padding() { Top = 180, Right = 20 },

        // Specify the color of the bars
        ForeColor = Color.Red,

        // Select the message font style
        Font = new SignatureFont { Size = 12, FamilyName = "Arial" },

        // Indicate the message position
        CodeTextAlignment = CodeTextAlignment.Above
    };

    // Sign and persist the document
    SignResult result = signature.Sign("output.pdf", options);
}
dotnet add package GroupDocs.Signature
click to copy
copied
More examples Documentation

Overview of GroupDocs.Signature for .NET

GroupDocs.Signature for .NET is a sophisticated document signing solution that supports an extensive array of signature types, including text, images, barcodes, digital certificates, and stamps. Compatible with over 60 file formats—such as PDF, MS Office, images, ZIP files, and more—this tool enables you to not only apply signatures but also 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.

Uncover our main features

We offer an impressive selection of signature options and operations

Sign documents across a variety of formats

Our .NET API supports the signing of more than 60 different formats. Effortlessly place various types of signatures on any page or at any desired position 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