GroupDocs.Signature for .NET

Generate QR codes for JPEG

Effortlessly generate 2D barcodes using text or numeric data and apply them across multiple pages and formats, including PDFs, Word, Excel, and more, via GroupDocs.Signature for .NET.

How to generate and insert a QR code in any place within a JPEG

GroupDocs.Signature facilitates the generation of QR codes in various popular formats and their placement on JPEG pages. Supporting over 10 types of QR codes, our library can be seamlessly integrated into .NET applications. Enhance your documents with QR code signatures using our product.

  1. Acquire the JPEG file or stream to be signed with a QR code.
  2. Provide the requisite text to QrCodeSignOptions.
  3. Customize visual parameters such as color, position, size, etc.
  4. Persist the document with the embedded QR code.
// Initialize a new Signature instance with the document
using (Signature signature = new Signature("input.jpeg"))
{
    // Utilize QrCodeSignOptions to embed a QR code into the document
    QrCodeSignOptions options = new QrCodeSignOptions("Text Content")
        {
            // Specify the signature type and designate its position on the page
            EncodeType = QrCodeTypes.QR,
            Left = 50,
            Top = 150
        };

    // Persist the document with the integrated QR code
    SignResult result = signature.Sign("output.jpeg", options);
}
dotnet add package GroupDocs.Signature
click to copy
copied
More examples Documentation

Comprehensive signature integration for documents

With GroupDocs.Signature for .NET API, users can effortlessly generate, modify, search, validate, and remove an array of signature types, streamlining document workflows with unparalleled precision.

Key Features of GroupDocs.Signature

Document signing with multiple signature types

GroupDocs.Signature enables the application of Text, Image, Barcode, QR Code, and Stamp signatures to any document format. Signatures can be precisely placed on any page, and metadata can be seamlessly managed through metadata signatures. Protect the integrity of your documents by incorporating digital certificates that prevent unauthorized alterations.

Signature search and validation

Verify the authenticity and accuracy of document signatures through an advanced validation process. Easily retrieve a detailed list of all signatures embedded in a document for comprehensive oversight.

Customizable signature modification

Update and refine previously applied signatures by adjusting content, placement, color, size, and other attributes to meet your specific needs.

Efficient signature removal

Streamline your document management by programmatically removing unwanted signatures. Whether dealing with digital certificates or other signature types, removal can be done swiftly and effectively.

How to generate QR code with various options?

This example demonstrates how to place a customized QR code on a JPEG page.

C#

// Retrieve the document to be signed and pass it to Signature
using (Signature signature = new Signature("input.jpeg"))
{
    // Configure QR code options with the necessary text
    QrCodeSignOptions options = new QrCodeSignOptions("Archived on July 11, 2019")
    {
          // Designate the relative position of the QR code on the page
          VerticalAlignment = Domain.VerticalAlignment.Top,
          HorizontalAlignment = Domain.HorizontalAlignment.Right,

          // Set the signature padding
          Margin = new Padding() { Top = 20, Right = 20 },

          // Specify the QR code color
          ForeColor = Color.Red,

          // Define the font options for the message
          Font = new SignatureFont { Size = 12, FamilyName = "Comic Sans MS" },

          // Customize the QR code background color and brush
          Background = new Background()
          {
              Color = Color.LimeGreen,
              Transparency = 0.5,
              Brush = new Domain.Extensions.LinearGradientBrush(Color.LimeGreen, Color.DarkGreen)
          }
    };

    // Embed the QR code into the document
    SignResult result = signature.Sign("output.jpeg", options);
}
dotnet add package GroupDocs.Signature
click to copy
copied
More examples Documentation

Discover the capabilities of GroupDocs.Signature for .NET

GroupDocs.Signature for .NET offers an expansive range of features, empowering users to generate and embed various signature types across leading document formats. Whether it’s PDFs, Word documents, Excel sheets, PowerPoint presentations, or image files, you can elevate your documents with Text, Image, Barcode, QR Code, Metadata, Digital, and Stamp 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.

Learn about our signature solutions

We proudly present a wide range of signature types and operational features

Generate QR codes for other document formats

Enhance all industry-standard file formats with the ability to embed QR codes through the .NET API. Store and encode critical information into 2D barcodes for seamless scanning and data retrieval.

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