GroupDocs.Signature for Node.js via Java

Make QR codes for PDF

Create and embed 2D barcodes with customizable content, including text and numeric data, across various document types like PDFs, Word, Excel, and Images with GroupDocs.Signature for Node.js via Java.

Guide to generating and embedding a QR code in any place within a PDF

GroupDocs.Signature enables the creation of QR codes in various widely-used formats and their integration into PDF pages. Supporting over 10 distinct QR code types, our solution can be seamlessly incorporated into Node.js via Java applications, enriching them with QR code signing capabilities.

  1. Provide the PDF file or stream for QR code signing.
  2. Input the desired text into the QrCodeSignOptions instance.
  3. Adjust visual settings such as color, positioning, size, etc.
  4. Save the document containing the QR code.
const signatureLib = require('@groupdocs/groupdocs.signature')

// Create a Signature instance and pass the document path
const signature = new signatureLib.Signature('input.pdf');

// Leverage QrCodeSignOptions to insert a QR code into the document
// Create QR code sign options
const options = new signatureLib.QrCodeSignOptions('Text Content');

// Define the signature type and placement on the page
options.setEncodeType(signatureLib.QrCodeTypes.QR);
options.setLeft(100);
options.setTop(100);

// Store the document with the newly added QR code
signature.sign('output.pdf', options);
npm i @groupdocs/groupdocs.signature
click to copy
copied
More examples Documentation

Comprehensive signature and QR code integration

With GroupDocs.Signature for Node.js via Java API, you can manage a full spectrum of signatures. Generate, customize, verify, search, and remove signatures effortlessly across different document types, offering unmatched flexibility for your workflows.

Signature and QR code features

Multi-format document signing

Add multiple types of signatures, including Text, Image, Barcode, QR Code, and Stamp signatures, to any supported document format. Place them on any page, and manage document metadata. Ensure document security through digital certificates to prevent unauthorized changes.

Efficient signature validation

Validate all signatures within a document to ensure they meet required standards. Easily retrieve and review signatures through the built-in search functionality.

Flexible signature editing

Update or modify existing signatures, adjusting aspects such as content, location, size, and color, to suit your document’s needs after initial signing.

Signature removal made easy

Remove any unwanted or obsolete signatures, including digital certificates, with ease. Full control over signature management ensures a clean and well-organized document.

Customizing a generated QR code

This example details the process of adding a customized QR code to a PDF page.

JavaScript

const signatureLib = require('@groupdocs/groupdocs.signature')

// Obtain the document to be signed and pass it to Signature
const signature = new signatureLib.Signature('input.pdf');

// Set up QR code options with the required text
const signOptions = new signatureLib.QrCodeSignOptions('Archived on July 11, 2019');

// Determine the QR code's position on the page
signOptions.setVerticalAlignment(signatureLib.VerticalAlignment.Bottom);
signOptions.setHorizontalAlignment(signatureLib.HorizontalAlignment.Right);

// Specify the signature padding
const padding = new signatureLib.Padding();
padding.setRight(20);
padding.setTop(20);
signOptions.setMargin(padding);

// Choose the QR code color
signOptions.setForeColor(signatureLib.Color.RED);

// Define the font options for the accompanying message
const font = new signatureLib.SignatureFont();
font.setSize(12);
font.setFamilyName("Comic Sans MS");
signOptions.setFont(font);

// Customize the background color and brush for the QR code
const background = new signatureLib.Background();
background.setColor(signatureLib.Color.GREEN);
background.setTransparency(0.5);
background.setBrush(new signatureLib.LinearGradientBrush(signatureLib.Color.GREEN, signatureLib.Color.DARK_GRAY, 0));
signOptions.setBackground(background);

// Embed the QR code into the document
signature.sign('output.pdf', signOptions);
npm i @groupdocs/groupdocs.signature
click to copy
copied
More examples Documentation

Explore GroupDocs.Signature for Node.js via Java capabilities

GroupDocs.Signature for Node.js via Java offers advanced document enhancement tools, enabling the generation and embedding of multiple signature types, including QR codes, into popular file formats. Sign and secure PDFs, Word documents, Excel spreadsheets, PowerPoint presentations, and images 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.

Understand our main capabilities

We deliver a broad selection of signature formats and operations tailored to your needs

Integrate QR codes with various file formats

Leverage the Node.js via Java API to generate QR codes and embed them into a variety of widely-used file formats. Encapsulate important data in these barcodes for seamless integration and future 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