I am trying to open a document with a password.
I am using docx package - a bit old
from docx import opendocx, getdocumenttext
and further
document = opendocx(filename)
I was wondering if there are options on opendocx so that it can open password-protected text documents - I know the password. I checked the github repo here: https://github.com/mikemaccana/python-docx , but didn't see an option. I am trying to avoid rewriting code to use a newer package, but this may be inevitable.
Reeza source
share