public void DetectDocumentSignatures()
{
//ExStart
//ExFor:FileFormatUtil.DetectFileFormat(String)
//ExFor:FileFormatInfo.HasDigitalSignature
//ExId:DetectDocumentSignatures
//ExSummary:Shows how to check a document for digital signatures before loading it into a Document object.
// The path to the document which is to be processed.
string filePath = MyDir + "Document.Signed.docx";
FileFormatInfo info = FileFormatUtil.DetectFileFormat(filePath);
if (info.HasDigitalSignature)
{
Console.WriteLine("Document {0} has digital signatures, they will be lost if you open/save this document with Aspose.Words.", Path.GetFileName(filePath));
}
//ExEnd
}