## protect(type) {#protectiontype} Protects the document from changes without changing the existing password or assigns a random password. ```js protect(type: Aspose.Words.ProtectionType) ``` | Par...... // We have not encrypted the document in any way, and...