Signature Management

Remove a signature

Use this workflow when an existing digital signature should be removed from the document.

Steps

  1. Create a PdfFileSignature instance and bind the signed PDF.
  2. Read the signature collection and select a signature name.
  3. Call removeSignature with that name.
  4. Save the updated file and close the facade object.

Java example

public static void removeSignature(Path inputFile, Path outputFile) {
    PdfFileSignature pdfSignature = new PdfFileSignature();
    try {
        pdfSignature.bindPdf(inputFile.toString());
        SignatureName signatureName = pdfSignature.getSignatureNames().get_Item(0);
        pdfSignature.removeSignature(signatureName);
        pdfSignature.save(outputFile.toString());
    } finally {
        pdfSignature.close();
    }
}

The current Java sample set does not include a separate method for removing the associated signature field after deleting the signature.