GroupDocs.Signature for Java

Electronic signatures for JPEG

Add a wide range of electronic signatures using GroupDocs.Signature for Java to all popular business formats, including PDF, Word, Excel, Presentations, and Images.

Steps for signing JPEG using Java

GroupDocs.Signature enables adding customized signatures to JPEG files. Java developers can integrate signing functionality into their applications using our software.

  1. Provide the JPEG file to be signed to the Signature instance.
  2. Use SignOptions to define the signature details.
  3. Customize various properties such as size, color, and content.
  4. Save the signed file to the desired location.
// Load the document into a Signature instance
Signature signature = new Signature("input.jpeg");

// Instantiate a QrCodeSignOptions object
QrCodeSignOptions options = new QrCodeSignOptions("QR code text");

// Configure all desired options
options.setLeft(100);
options.setTop(100);
options.setForeColor(Color.RED);

// Save the file with added QR code to the local disk
signature.sign("output.jpeg", options);
Maven XML
click to copy
copied
More examples Documentation

Document electronic signatures

Our e-signing API streamlines business processes. Sign, search, update, delete, and verify various signatures programmatically.

e-Signatures

e-Sign office documents

Easily place electronic signatures in any position on any page of a document. Enhance document content with text, images, barcodes, metadata, or digital certificates.

Signature management

After signing, documents can be processed further. Retrieve a list of all signatures present, modify them, or delete them as needed.

Advanced content control

Secure business documents against unauthorized changes with corporate digital certificates. Add or extract hidden metadata entries available in all document types.

How to add an image signature to a document

This example demonstrates how to place an image signature on a specific page of a document.

Java

// Provide the source document as a parameter
Signature signature = new Signature("input.jpeg");

// Specify the image path in the signature options
ImageSignOptions options = new ImageSignOptions("image.jpg");

// Set the size and target pages for the signature
options.setVerticalAlignment(VerticalAlignment.Bottom);
options.setHorizontalAlignment(HorizontalAlignment.Right);
options.setHeight(150);
options.setWidth(200);
Padding padding = new Padding(50);
options.setMargin(padding);
options.setAllPages(true);

// Apply the signature to the document
signature.sign("output.jpeg", options);
Maven XML
click to copy
copied
More examples Documentation

About GroupDocs.Signature for Java API

GroupDocs.Signature for Java offers advanced e-signing features. Use it to add, search, verify, modify, and remove various types of e-signatures in documents and images without the need for external software. E-sign PDFs, Word documents, Excel spreadsheets, PowerPoint presentations, and popular image formats easily.
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.

Explore our key features

We are proud to offer a wide range of supported signatures and operations.

Sign popular file formats with e-signatures

The e-signing API for Java enables the processing of all modern business file and document formats.

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