Title: add "Restrict Editing" method to public API · Issue #1641 · python-openxml/python-docx · GitHub
Open Graph Title: add "Restrict Editing" method to public API · Issue #1641 · python-openxml/python-docx
X Title: add "Restrict Editing" method to public API · Issue #1641 · python-openxml/python-docx
Description: It would be useful to support Word's document protection features, such as Restrict Editing → No Changes (Read Only). Currently, enabling document protection requires manually modifying the underlying Open XML contained within the DOCX f...
Open Graph Description: It would be useful to support Word's document protection features, such as Restrict Editing → No Changes (Read Only). Currently, enabling document protection requires manually modifying the underly...
X Description: It would be useful to support Word's document protection features, such as Restrict Editing → No Changes (Read Only). Currently, enabling document protection requires manually modifying the und...
Opengraph URL: https://github.com/python-openxml/python-docx/issues/1641
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add \"Restrict Editing\" method to public API","articleBody":"It would be useful to support Word's document protection features, such as Restrict Editing → No Changes (Read Only).\n\nCurrently, enabling document protection requires manually modifying the underlying Open XML contained within the DOCX file. This involves extracting the document package, updating word/settings.xml to add a w:documentProtection element, and then rebuilding the DOCX archive.\n\nWhile this approach works, it requires low-level knowledge of the DOCX format and direct XML manipulation. A high-level API would make it significantly easier to create documents that can be viewed and printed but are protected against accidental modification.\n\nPossible API examples:\n\n```\ndocument.protection.read_only = True\n```\nor\n\n```\ndocument.protection.restrict_editing()\n```\nThis would provide a more convenient and discoverable way to configure document protection without requiring users to work directly with Open XML internals.","author":{"url":"https://github.com/nikristovski1","@type":"Person","name":"nikristovski1"},"datePublished":"2026-11-04T05:21:47Z","url":"https://github.com/python-openxml/python-docx/issues/1641"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:48fa3144-2e16-bf52-d292-cf617ae1185b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A20:B1603:77165B:8834B5:6AFF6390 |
| html-safe-nonce | 72818a2fd1818db8df2277ad58a58db2934ba5cfaf394c2f9876fa7b4d12816d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTIwOkIxNjAzOjc3MTY1Qjo4ODM0QjU6NkFGRjYzOTAiLCJ2aXNpdG9yX2lkIjoiNTE0NTA4NzM4MDMzMTM4OTg0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9239583d3191cb4061ce2a5fad22abdc2f1adaed4b75464fd1a3ae08b7438f0b |
| hovercard-subject-tag | issue:6196895234 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-openxml/python-docx/1641/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b771f6b671578e58fb8533ed96de7295278750b77c8d1d96070b99b1413aa08e/python-openxml/python-docx/issues/1641 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b771f6b671578e58fb8533ed96de7295278750b77c8d1d96070b99b1413aa08e/python-openxml/python-docx/issues/1641 |
| og:image:alt | It would be useful to support Word's document protection features, such as Restrict Editing → No Changes (Read Only). Currently, enabling document protection requires manually modifying the underly... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nikristovski1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b58589a1c4eda1e3c8904144a412b88ca4455f63ca2ad3629f2e9f3c3a1d12 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git |
| octolytics-dimension-user_id | 3403760 |
| octolytics-dimension-user_login | python-openxml |
| octolytics-dimension-repository_id | 13592924 |
| octolytics-dimension-repository_nwo | python-openxml/python-docx |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13592924 |
| octolytics-dimension-repository_network_root_nwo | python-openxml/python-docx |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8968d6d6acc65d74e4df332d23932dd3fd0502a4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width