Skip to content


Folders and files

Last commit message
Last commit date

Latest commit


Repository files navigation

Java API to Manage Document e-Signatures

GroupDocs.Signature for Java is an Digital Signature API that provides the ability to add stamps, barcodes and QR-codes, text, image, metadata, form field and digital signatures to documents of 35+ formats. Supported document formats inlcude PDF, Microsoft Word documents, Microsoft Excel spreadsheets, Microsoft PowerPoint presentations, Open Document formats, images, Corel & Photoshop files, and many more.

Directory Description
Docs Product documentation containing the Developer's Guide, Release Notes and more.
Demos Build document eSign applications using GroupDocs.Signature for Java.
Examples Java examples and sample documents for you to get started quickly.

Electronic Signature Management via Java

Document Singing

  • Native text signatures as text stamps, text labels with settings for visualization effects, opacity, colors, fonts and so on.
  • Text as image signatures with scope of additional options to specify how text will look.
  • Image signatures with options to specify extra image effects & rotation.
  • Digital signatures based on certificate files and ability to support digital signature by document type.
  • Barcode & QR-code signatures with variety of options.
  • Metadata signatures to keep signatures hidden.
  • Form-field signatures.

Search & Verify Digital Signatures

  • Digital signature information from PDF, Spreadsheets, Word Processing documents & PowerPoint presentations.
  • Barcode & QR-code signature information from all supported formats.
  • Metadata signatures information from all supported formats.
  • Form-field signatures information from all supported formats.

Preview Document Pages

Document preview feature allows to generate image representations of document pages. This may be helpful for better understanding about document content and its structure, set proper signature position inside document, apply appropriate signature styling etc. Preview can be generated for all document pages (by default) or for specific page numbers or page range in PNG, JPG & BMP formats.

Get Started with GroupDocs.Signature for Java

GroupDocs.Signature for Java requires J2SE 7.0 (1.7), J2SE 8.0 (1.8) or above. Please install Java first if you do not have it already.

GroupDocs hosts all Java APIs on GroupDocs Artifact Repository, so simply configure your Maven project to fetch the dependencies automatically.

Search for Digital Signatures in Excel XLSX

Signature signature = new Signature("spreadsheet.xlsx");
DigitalSearchOptions options = new DigitalSearchOptions();

// search for signatures in document
List<DigitalSignature> signatures =, options);
System.out.print("\nSource document contains following signatures.");
for (DigitalSignature digitalSignature : signatures)
    System.out.print("Digital signature found from "+digitalSignature.getSignTime()+" with validation flag "+digitalSignature.isValid()+". Certificate SN "+ digitalSignature.getCertificate().getType());

Digitally Sign PDF with Certificate

Signature signature = new Signature("sample.pdf"); 
DigitalSignOptions options = new DigitalSignOptions("certificate.pfx");
// certifiate password
// digital certificate details
// image as digital certificate appearance on document pages
Padding padding = new Padding();
SignResult signResult = signature.sign("signed.pdf", options);
// analyzing result
System.out.print("List of newly created signatures:");
int number = 1;
for(BaseSignature temp : signResult.getSucceeded())
    System.out.print("Signature #"+ number++ +": Type: "+temp.getSignatureType()+" Id:"+temp.getSignatureId()+
            ",Location: "+temp.getLeft()+"x"+temp.getTop()+". Size: "+temp.getWidth()+"x"+temp.getHeight());

Home | Product Page | Documentation | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License