GroupDocs.Signature for Java

Modify PDF signatures

Easily modify a wide variety of electronic signatures using GroupDocs.Signature for Java across popular formats like PDF, Word, Excel, Presentations, and Images.

Steps for editing text signatures in PDF using Java

GroupDocs.Signature allows Java developers to update the content of text signatures previously added to PDF files. Enhance Java applications with robust capabilities.

  1. Add the PDF file to the Signature instance.
  2. Retrieve a list of all signatures in the document.
  3. Update the content of any identified signature.
  4. Analyze the results of the modification.
// Instantiate a Signature object with the document path
Signature signature = new Signature("input.pdf");

// Search for any text signatures within the document
TextSearchOptions options = new TextSearchOptions();
List<TextSignature> signatures = signature.search(TextSignature.class, options);

if (signatures.size() > 0) {
    // Alter the text of the first detected signature
    TextSignature textSignature = signatures.get(0);
    textSignature.setText("New Text");
    boolean result = signature.update('output.pdf', textSignature);

    // Validate the outcome of the modification
    if (result) {
        System.out.print("\nSignature was updated successfully.");
    }
}
Maven XML
click to copy
copied
More examples Documentation

Signature management for documents

GroupDocs.Signature for Java enables you to add, modify, search, verify, and delete signatures across all major industrial file formats.

Signature modification

Document signatures

Our product primarily focuses on signing documents with text, image, barcode, or stamp signatures. You can place them on any page and position. Add or modify hidden metadata, such as EXIF data in images, and protect document content from unauthorized changes using digital certificates.

Signature search and verification

Ensure that signatures meet your requirements by verifying signed documents. You can retrieve a complete list of signatures within a document through the search functionality.

Modify existing signatures

Modifying previously added signatures is a common task. Use the modification process to update the content, appearance, position, and other properties of a signature.

Signature deletion

Our solution fully supports all operations related to signatures. Removing various types of signatures from a document is a simple process.

Modify barcode signatures

This example elucidates the process of modifying barcode signatures within a document.

Java

// Utilize a document that contains barcode signatures
final Signature signature = new Signature("input.pdf");

// Search for existing barcode signatures
BarcodeSearchOptions options = new BarcodeSearchOptions();
List<BarcodeSignature> signatures = signature.search(BarcodeSignature.class, options);

if (signatures.size() > 0)
{
    // Adjust the position of the first barcode and save the updated document
    BarcodeSignature barcodeSignature = signatures.get(0);
    barcodeSignature.setLeft(100);
    barcodeSignature.setTop(100);
    boolean result = signature.update("output.pdf", barcodeSignature);

    // Confirm the result of the modification
    if (result)
    {
          System.out.print("\nBarcode was updated successfully.");
    }
}
Maven XML
click to copy
copied
More examples Documentation

About GroupDocs.Signature for Java

GroupDocs.Signature for Java not only allows you to sign documents but also provides the ability to modify existing signatures. Easily update signatures in widely used formats such as PDF, Word, Excel, and Presentations.
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.

Investigate our feature portfolio

We proudly support a wide variety of signature formats and operational tools

Modify signatures in various file formats

Document formats signed using our API for Java can be modified. Retrieve a list of signatures from a document and update any accessible properties.

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