Aspose.Words - Protect Documents

Document doc = new Document("data/document.doc");
doc.protect(ProtectionType.READ_ONLY);
// doc.protect(ProtectionType.ALLOW_ONLY_COMMENTS);
// doc.protect(ProtectionType.ALLOW_ONLY_FORM_FIELDS);
// doc.protect(ProtectionType.ALLOW_ONLY_REVISIONS);


Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Oct 11, 2014 at 1:40 PM by shoaibkhan, version 1