Menu

Working with Digital Signatures

Shoaib

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


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.