![]() |
VOOZH | about |
// Select PDF document
Signature signature = new Signature("sample.pdf");
// Provide text
TextSignOptions options =
new TextSignOptions("John Smith");
options.setForeColor(Color.RED);
// Sign document and save to file
signature.sign("signed.pdf", options);
Maven XML
API for performing document signing and related operations in Java applications
Swift and customizable signing: GroupDocs.Signature for Java offers a wide range of digital signature options for PDFs, images, and Office documents. You can use text, barcodes, QR-codes, digital certificates, pictures, or hidden metadata. The document processing is fast and efficient.
Advanced document processing involves powerful operations on signed documents using GroupDocs.Signature for Java. You can search for and validate signatures that have been added to business documents using various useful criteria. Additionally, you can access detailed information about the document or obtain preview images of its pages.
Robust signing options allow you to customize the output for documents signed with GroupDocs.Signature for Java. You can precisely position any signature on any document page and configure its appearance in various ways. The Java API supports saving signed business documents in numerous supported formats and provides options for securing them with passwords.
GroupDocs.Signature for Java supports operations with the following file formats.
Signing PDFs, Office Documents, and images with digital signatures
Adding Signatures
Sign a document using various supported signature types by placing a digital signature precisely at any position on any page.
Customizing results
Customize the signature appearance by adjusting color, font, border, rotation, and other features to achieve the desired result.
Securing documents with password
For many supported document types, you can protect the signed document with a password.
Preventing unauthorized changes
Protect important business documents signed with a digital certificate from unauthorized modifications.
Obtaining results in desired formats
Easily obtain signed result files in any supported format. You can also convert MS Word documents to PDF effortlessly.
Searching for signatures
It is possible to get information about previously added signatures in specific documents.
Managing signatures
Once a signature is placed on a document page, it can be deleted, moved, or updated as needed.
Some use cases of typical GroupDocs.Signature for Java operations
Enhancing business processes by adding QR-codes to specific pages of PDF documents can be valuable. There is an example of how to add a QR code using GroupDocs.Signature for Java.
// Load the document to sign
Signature signature = new Signature("file_to_sign.pdf");
// Create QR code options with predefined text
QrCodeSignOptions options = new QrCodeSignOptions("The document is approved by John Smith");
// Configure QR code encoding type and position on the page
options.setEncodeType(QrCodeTypes.QR);
options.setLeft(100);
options.setTop(100);
// Sign the document and save it as the result file
signature.sign("file_with_QR.pdf", options);
You can Safeguard a Document using personal or corporate signatures stored as digital certificates. Documents secured with certificate cannot be altered without invalidating the signature.
// Load the document to be digitally signed
Signature signature = new Signature("file_to_sign.docx");
// Specify digital signing options and provide the path to the certificate file
DigitalSignOptions options = new DigitalSignOptions("certificate.pfx");
// Set the certificate password
options.setPassword("1234567890");
// Sign the document and save it to the desired path
signature.sign("digitally_signed.docx", options);
Download GroupDocs.Signature for free or get a trial license for full access!
Explore documentation, code samples, and community support to enhance your experience.