protect method

protect

Protects the document from changes and sets a protection password.

def protect(self, protection_type, password):
    ...
Parameter Type Description
protection_type WordProcessingProtectionType Specifies the protection type for the document.
password str The password to protect the document with.

See Also