Signer.RemoveAllSignatures

Signer RemoveAllSignatures method. Removes all digital signatures from source file and writes unsigned file to destination file.

RemoveAllSignatures(string, string)

Removes all digital signatures from source file and writes unsigned file to destination file.

Supported formats are: Doc, Dot, Docx, Dotx, Docm, Dotm, Odt, Ott, Xps.

public static void RemoveAllSignatures(string srcFileName, string dstFileName)

Examples

Demonstrates how to remove all signatures from the document.

Signer.RemoveAllSignatures(MyDir + "Signed.docx", ArtifactsDir + "NotSigned.docx");

See Also


RemoveAllSignatures(Stream, Stream)

Removes all digital signatures from document in source stream and writes unsigned document to destination stream.

Output will be written to the start of stream and stream size will be updated with content length.

Supported formats are: Doc, Dot, Docx, Dotx, Docm, Dotm, Odt, Ott, Xps.

public static void RemoveAllSignatures(Stream srcStream, Stream dstStream)

Examples

Demonstrates how to remove all signatures from the document loaded from stream.

using (Stream input = File.OpenRead(MyDir + "Signed.docx"))
using (Stream output = File.Create(ArtifactsDir + "NotSigned.docx"))
{
    Signer.RemoveAllSignatures(input, output);
}

See Also