Wiki
Clone wikiAspose Java for Docx4j / Protect-Documents
Aspose.Words
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
Updated