GroupDocs.Signature for Node.js via Java

Add text signatures to PDF

Incorporate personalized text signatures into your business files with GroupDocs.Signature for Node.js via Java. Take control of your document workflows by enhancing them with secure and customizable signature options.

Guide to creating text signatures for PDF using JavaScript

GroupDocs.Signature enables the addition of text signatures to PDF documents within Node.js via Java applications. Quickly enhance your product’s capabilities with our robust solutions.

  1. Provide the PDF document as an argument to the Signature class.
  2. Instantiate TextSignOptions with the required text.
  3. Set the visual properties of the text signature.
  4. Add the text signature to the desired page(s) of the document.
const signatureLib = require('@groupdocs/groupdocs.signature')

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

// Create TextSignOptions with the required signature text
const options = new signatureLib.TextSignOptions('Approved');

// Configure the text color and font properties
options.setForeColor(new signatureLib.Color(255, 0, 0));
const signatureFont = new signatureLib.SignatureFont();
signatureFont.setSize(12);
signatureFont.setFamilyName('Comic Sans MS');
options.setFont(signatureFont);

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

Enhanced text signature control

With GroupDocs.Signature for Node.js via Java, you can greatly improve the management of text-based signatures in key document formats. The tool allows you to configure the style, placement, and content of signatures with ease, enabling businesses to tailor their document processes.

Core features of GroupDocs.Signature

Dynamic document signatures

Insert various types of signatures—such as text, images, barcodes, QR codes, or stamps—on any page of supported documents. Embed metadata to carry hidden information or apply digital certificates for advanced security measures.

Signature search and validation

Verify the authenticity of signatures embedded within your documents. Perform efficient searches to locate all signature instances, ensuring thorough document tracking and management.

Edit or remove signatures

Modify or delete previously added signatures as needed. You can adjust the appearance, position, or content of any signature to meet evolving requirements, ensuring flexibility in document handling.

Native signature customization

For certain file types, tailor signature placement with built-in document features, such as adding watermarks to Word files or customized stamps to PDFs, enhancing the uniqueness of your documents.

Implement text signatures in documents

Learn how to embed text signatures into business documents to optimize processes.

JavaScript

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

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

// Define text options with the specified content
const options = new signatureLib.TextSignOptions('Rescheduled to 03/04/2025');

// Set the size and position of the signature on the page
options.setLeft(100);
options.setTop(180);
options.setWidth(230);
options.setHeight(30);

// Apply padding for the signature from the page edges
const padding = new signatureLib.Padding();
padding.setBottom(20);
padding.setRight(20);
options.setMargin(padding);

// Customize the text color and font style
options.setForeColor(signatureLib.Color.RED);
const signatureFont = new signatureLib.SignatureFont();
signatureFont.setSize(12);
signatureFont.setFamilyName('Comic Sans MS');
options.setFont(signatureFont);

// Add a border to the text signature if desired
const border = new signatureLib.Border();
border.setColor(signatureLib.Color.RED);
border.setDashStyle(signatureLib.DashStyle.Dash);
border.setTransparency(0.5);
border.setVisible(true);
border.setWeight(2);
options.setBorder(border);

// Configure the background of the signature
const background = new signatureLib.Background();
background.setColor(signatureLib.Color.YELLOW);
background.setTransparency(0.8);
options.setBackground(background);

// Optionally, save the text as an image for compatibility
options.setSignatureImplementation(signatureLib.TextSignatureImplementation.Image);

// Save the document with the added text signature
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 is an innovative solution designed to facilitate the addition of text signatures to documents. Customize and place signatures on any page, improving efficiency in document handling. Streamline your organization’s workflows by integrating personalized text markings that enhance both functionality and professionalism.
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.

Comprehensive signature management features

Our platform offers full CRUD operations and advanced features for the management of seven distinct signature types, allowing you to manage your document signatures with precision and ease.

Apply text signatures across various formats

Leverage the capabilities of Node.js via Java API to integrate text-based signatures into a wide range of Office formats. Control the flow of information at every stage of your document lifecycle by adding highly customizable text marks.

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