DocumentUnprotect Method

Removes protection from the document regardless of the password.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void Unprotect()
Remarks

This method unprotects the document even if it has a protection password.

Note that document protection is different from write protection. Write protection is specified using the WriteProtection.

Examples
Shows how to unprotect a document. Note that the password is not required.
doc.Unprotect();
See Also