Skip to main content
A newer version of this page is available. .
All docs
V21.1
.NET Framework 4.5.2+

DocumentSigner.RemoveSignatures(String, String) Method

Removes signatures from a file and saves the result.

Namespace: DevExpress.Office.DigitalSignatures

Assembly: DevExpress.Docs.v21.1.dll

Declaration

public void RemoveSignatures(
    string inputFileName,
    string outputFileName
)

Parameters

Name Type Description
inputFileName String

The path to a target file.

outputFileName String

The path to a file where the result should be saved.

Remarks

The code sample below removes signatures from the DOCX and XLSX document:

static void Main(string[] args)
{
    ClearSignatures("Template_signed.docx", @"D:/Template_cleared.docx");
    ClearSignatures("Template_signed.xlsx", @"D:/Template_cleared.xlsx");
}

  private static void ClearSignatures(string path, string output)
  {
      DocumentSigner remover = new DocumentSigner();
      remover.RemoveSignatures(path, output);
      Process.Start(output);
  }
See Also