GroupDocs.Signature for Java

Delete signatures from PDF

Our solution not only allows you to sign business documents but also provides the capability to locate and remove various types of signatures using GroupDocs.Signature for Java.

Steps for deleting e-signatures from PDF using Java

GroupDocs.Signature makes it easy for Java developers to delete e-signatures in PDF files using their applications by following a few simple steps.

  1. Pass the PDF path to an instance of the Signature class.
  2. Use the Search method to retrieve signatures from the document.
  3. Delete one or more of the located signatures.
  4. Analyze the results of the document processing.
// Pass the document containing the signatures to be deleted to Signature
Signature signature = new Signature("input.pdf");

// Retrieve the digital signatures present in the document
DigitalSearchOptions options = new DigitalSearchOptions();
List<DigitalSignature> signatures = signature.search(DigitalSignature.class, options);

// Delete the first located digital signature
if(signatures.size() > 0)
{
    DigitalSignature digitalSignature = signatures.get(0);
    boolean result = signature.delete("output.pdf", digitalSignature);

    // Process the result of the deletion
    if(result)
    {
        System.out.print("\nDigital PDF signature was deleted successfully");
    }
}
Maven XML
click to copy
copied
More examples Documentation

Enhance business processes with signature management

GroupDocs.Signature for Java is designed for signing and managing business file formats, allowing you to add, modify, verify, or delete signatures as needed.

GroupDocs.Signature Capabilities

Sign documents

Easily add text, image, barcode, QR code, or stamp signatures to any page of supported documents. Utilize hidden metadata like EXIF in images or secure document content from unauthorized modifications with digital certificates.

Search and verification

Maximize the potential of signed documents by verifying signatures to ensure their validity. You can also retrieve a comprehensive list of all signatures within a document through a simple search.

Modify signatures

Most previously added signatures can be adjusted. You can easily modify text, reposition the signature, or change its color.

Delete signatures

Our solution fully supports CRUD operations for signatures, allowing you to delete various types of signatures from a document as needed.

Remove all barcode signatures

Learn how to remove all barcode signatures embedded within a document.

Java

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

// Delete all barcode signatures
DeleteResult result = signature.delete("output.pdf", SignatureType.Barcode);

// Process the result of the deletion
if (result.getSucceeded().size() > 0)
{
    System.out.print("\nFollowing PDF barcode signatures were deleted:");
    int number = 1;
    for (BaseSignature temp : result.getSucceeded())
    {
          System.out.print("Signature #"+number++ +
          ": Type: "+temp.getSignatureType()+" Id:"+temp.getSignatureId()+
          ", Text: "+((BarcodeSignature)temp).getText());
    }
}
Maven XML
click to copy
copied
More examples Documentation

About GroupDocs.Signature for Java

GroupDocs.Signature for Java offers a comprehensive signing solution, capable of handling various types of signatures such as text, images, barcodes, digital certificates, and stamps. This tool supports over 60 different file formats, including PDFs, MS Office documents, image files, ZIP archives, and many other commonly used formats. Moreover, once signatures are applied, they can be easily searched, verified, edited, or removed whenever needed.
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.

Learn about our key features

Explore the diverse operations and signature methods available with our platform

Remove signatures from various file formats

Our GroupDocs.Signature for Java solution supports the removal of signatures from over 60 different file 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