GroupDocs.Signature for Node.js via Java

Sign PDF files using image signatures

Leverage the capabilities of GroupDocs.Signature for Node.js via Java to effortlessly embed images into a multitude of office document formats such as PDFs, Word, Excel, and various image files. Adding an executive signature image can significantly enhance the professionalism and credibility of your documents, creating a refined and polished presentation.

Guide to adding images in PDF using JavaScript

GroupDocs.Signature empowers Node.js via Java applications to seamlessly integrate image signatures into PDF documents. Enhance your application’s capabilities with our comprehensive library.

  1. Instantiate Signature with the PDF document
  2. Utilize ImageSignOptions to specify the signature image
  3. Position the image precisely on any page
  4. Save the signed document to the desired location
const signatureLib = require('@groupdocs/groupdocs.signature')

// Initialize Signature with the path to the document
const signature = new signatureLib.Signature('input.pdf');

// Configure ImageSignOptions to include the desired image signature
const options = new signatureLib.ImageSignOptions('company_logo.jpg');

// Place the image at the top-left corner across all pages
options.setAllPages(true);
options.setLeft(100);
options.setTop(200);

// Save the document with the applied image signature
const result = signature.sign('output.pdf', options);
npm i @groupdocs/groupdocs.signature
click to copy
copied
More examples Documentation

Advanced document signing capabilities

Our API offers a suite of features that simplify electronic signing. You can add, modify, remove, search, and verify multiple types of signatures, including image signatures, with ease.

Image signatures

Incorporate images into office documents

Easily place image signatures anywhere within your document, whether it’s PDFs, Word, or Excel files. Enhance your documents by adding images, barcodes, metadata, or digital certificates for added functionality.

Search and validate signatures

Ensure the authenticity of your signed documents by verifying the signatures. Use search functionality to retrieve and review all the signatures embedded within your document.

Modify existing signatures

Our API enables users to update and adjust signatures as needed. Modify the size, position, or other attributes of any previously added signature for flexibility in document handling.

Remove unnecessary signatures

Efficiently manage your documents by removing signatures that are no longer needed. Our API supports full CRUD operations for nearly all signature types.

Enhance documents with image signatures

Learn how to incorporate images into business documents to add supplementary information.

JavaScript

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

// Select the document to be signed
const signature = new signatureLib.Signature('input.pdf');

// Configure image options with the image path
const options = new signatureLib.ImageSignOptions('manager_signature.jpg');

// Adjust the size of the image signature
options.setWidth(100);
options.setHeight(100);

// Place the image at the bottom-right corner
options.setVerticalAlignment(signatureLib.VerticalAlignment.Bottom);
options.setHorizontalAlignment(signatureLib.HorizontalAlignment.Right);

// Apply padding from the page corners if needed
const padding = new signatureLib.Padding();
padding.setRight(120);
padding.setBottom(120);
options.setMargin(padding);

// Optionally, add a custom border to the image
const border = new signatureLib.Border();
border.setColor(signatureLib.Color.RED);
border.setDashStyle(signatureLib.DashStyle.DashDotDot);
border.setWeight(5);
border.setVisible(true);
options.setBorder(border);

// Rotate the image signature for optimal appearance
options.setRotationAngle(45);

// Save the updated document to the desired location
const result = signature.sign('output.pdf', options);
npm i @groupdocs/groupdocs.signature
click to copy
copied
More examples Documentation

Introducing GroupDocs.Signature for Node.js via Java

GroupDocs.Signature for Node.js via Java empowers users to incorporate image signatures at any location within your documents. This tool enables businesses to streamline their workflows by adding images to PDFs, Word, Excel, PowerPoint, and popular image formats, improving document management efficiency.
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.

Discover the functions we offer

We are proud to showcase a broad selection of signature methods and operations

Add images to various file types

The Node.js via Java API allows you to embed images into a broad range of document formats. Customize the size, placement, and page positioning to enhance your document signing process.

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