unprotect method
Leave feedback
On this page
Removes protection from the document regardless of the password.
def unprotect(self):
...
from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.word_processing import WordProcessingLoadOptions
def unprotect_document():
with Watermarker("./document.docx", WordProcessingLoadOptions()) as watermarker:
content = watermarker.get_content()
content.unprotect()
watermarker.save("./output.docx")
if __name__ == "__main__":
unprotect_document()
- class
WordProcessingContent
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.