Skip to main content
All docs
V23.2

DocumentSigner.RemoveSignatures(String, String) Method

Removes signatures from a file and saves the result.

Namespace: DevExpress.Office.DigitalSignatures

Assembly: DevExpress.Docs.v23.2.dll

NuGet Package: DevExpress.Document.Processor

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