GroupDocs.Signature for Java

Sign JPEG files with image signatures

Use GroupDocs.Signature for Java to insert images into various office document formats, including PDFs, Word, Excel, and image files. An image with a boss’s signature can add an impressive touch!

Steps for adding an image to any place of a JPEG via Java

GroupDocs.Signature enhances Java applications with the capability to add signatures to any page of JPEG documents precisely. Easily boost your product’s functionality by integrating our library.

  1. Create an instance of Signature with the JPEG document.
  2. Use ImageSignOptions to specify the signature image.
  3. Place the image on any location of any page.
  4. Save the signed document to a new location.
// Instantiate Signature with the document path
Signature signature = new Signature("input.jpeg");

// Create ImageSignOptions using an image for the signature
ImageSignOptions options = new ImageSignOptions("company_logo.jpg");

// Position the image in the top left corner of all pages
options.setAllPages(true);
options.setLeft(100);
options.setTop(200);

// Save the signed document
SignResult result = signature.sign("output.jpeg", options);
Maven XML
click to copy
copied
More examples Documentation

Comprehensive document signing solution

Our API supports a range of signing features, allowing you to add, modify, delete, search, and verify multiple signature types, including image signatures.

Image signing

Insert images into office documents

Effortlessly place image signatures in any position on any page of a document. Enrich your content with text, images, barcodes, metadata, and digital certificates.

Signature search and verification

Easily verify the validity of signatures in signed documents. Retrieve a list of all signatures within a document and check detailed information about each one.

Modify signatures

Update the content, appearance, size, or position of any signature previously added to a document. Our API makes modifying signatures simple and efficient.

Remove unnecessary signatures

Our API supports full CRUD operations for most signature types. You can easily remove signatures from nearly all supported document types when necessary.

Enhance document content with image signatures

Learn how to append images to business documents to provide additional information.

Java

// Select a document to be signed
Signature signature = new Signature("input.jpeg");

// Create image options with the path to the image
ImageSignOptions options = new ImageSignOptions("manager_signature.jpg");

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

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

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

// Add a custom border to the image if desired
Border border = new Border();
border.setColor(Color.RED);
border.setDashStyle(DashStyle.DashDotDot);
border.setWeight(5);
border.setVisible(true);
options.setBorder(border);

// Rotate the signature for better alignment
options.setRotationAngle(45);

// Save the updated document to any location
SignResult result = signature.sign("output.jpeg", options);
Maven XML
click to copy
copied
More examples Documentation

Discover GroupDocs.Signature for Java

GroupDocs.Signature for Java offers the ability to add image signatures to any page and position within business documents. Streamline your workflows by adding images to PDFs, Word documents, Excel spreadsheets, PowerPoint presentations, and popular image formats.
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.

Take a look at our leading features

We are pleased to present a variety of signature tools and operations

Add images to other file formats

With the Java API, you can insert supported image formats into various documents. Easily resize, choose position, and add image signatures to your documents.

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