paper-docxAPI referenceerrors
DocumentProtectedError
paper-docx 0.2.0 API reference
The document enforces an editing restriction this operation ignores.
Word honors w:documentProtection (read-only, forms-only, comments-only,
tracked-changes-enforced); silently editing a locked template reports
false state. Protection is ADVISORY, not security — after reviewing why
the document is locked, call
docx.protection.acknowledge_protection(document) to proceed. paper-docx
never strips the protection setting itself.