Aspose.Words - Working with Digital Signatures

// The path to the document which is to be processed.
String filePath = dataPath + "document.docx";

FileFormatInfo info = FileFormatUtil.detectFileFormat(filePath);
if (info.hasDigitalSignature())
{
    System.out.println(java.text.MessageFormat.format(
            "Document {0} has digital signatures, they will be lost if you open/save this document with Aspose.Words.",
            new File(filePath).getName()));
}
else
{
	System.out.println("Document has no digital signature.");
}


Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Dec 18, 2014 at 10:31 AM by shoaibkhan, version 2