Title: Support for '.docm' OOXML format? · Issue #212 · python-openxml/python-docx · GitHub
Open Graph Title: Support for '.docm' OOXML format? · Issue #212 · python-openxml/python-docx
X Title: Support for '.docm' OOXML format? · Issue #212 · python-openxml/python-docx
Description: Hello, It seems that python-docx does not have any built in support for '.docm' OOXML documents. From the perspective of parsing this document type as a docx, there is not much difference: There are some extra document parts that support...
Open Graph Description: Hello, It seems that python-docx does not have any built in support for '.docm' OOXML documents. From the perspective of parsing this document type as a docx, there is not much difference: There ar...
X Description: Hello, It seems that python-docx does not have any built in support for '.docm' OOXML documents. From the perspective of parsing this document type as a docx, there is not much difference: ...
Opengraph URL: https://github.com/python-openxml/python-docx/issues/212
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for '.docm' OOXML format?","articleBody":"Hello,\n\nIt seems that python-docx does not have any built in support for '.docm' OOXML documents. From the perspective of parsing this document type as a docx, there is not much difference: There are some extra document parts that support the macro language / VBA, and the Content Type for the 'word\\document.xml' Document Part is 'application/vnd.ms-word.document.macroEnabled.main+xml'.\n\nAttempting to open a '.docm' with python-docx results in the error code \"file '...' is not a Word file, content type is 'application/vnd.ms-word.document.macroEnabled.main+xml'\", and it does not even attempt to parse the file.\n\nHowever, because a docm is basically a docx, I can get python-docx reading and writing docm files by adding the 'application/vnd.ms-word.document.macroEnabled.main+xml' Content Type to 'opc/constants.py', assigning the Content Type to a Part Factory in **init**.py, and adding the new Content Type to the gatekeeper check in api.py.\n\nIs this a feature you might add to the library? So far, it seems like a small change; I haven't had any issues with my locally patched version yet, though you might know of some gotchas that I haven't encountered yet.\n\nThank you,\n\nPete\n","author":{"url":"https://github.com/3vocati","@type":"Person","name":"3vocati"},"datePublished":"2015-09-28T10:31:43Z","url":"https://github.com/python-openxml/python-docx/issues/212"}
| 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:3537cabb-6a22-3e44-ec5d-422956ca59e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B41E:CEC0A:7E261C:92B00F:6AFF6587 |
| html-safe-nonce | f28abb3654a583ccd2546f4352e7b36cc57cd33be46c496244d0968117c7d225 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDFFOkNFQzBBOjdFMjYxQzo5MkIwMEY6NkFGRjY1ODciLCJ2aXNpdG9yX2lkIjoiMzMxMzg3MDQyMjMzNTc3NjEzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7bdc5628275b1afc4e9f9e95a9017f06524e402ef70c9ddc7286ae95a8fe27d6 |
| hovercard-subject-tag | issue:108629970 |
| 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/212/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a0b73d4e270462ae9802e8ad4a9d787f54d05c043c1303178169bd1527ed6d9/python-openxml/python-docx/issues/212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a0b73d4e270462ae9802e8ad4a9d787f54d05c043c1303178169bd1527ed6d9/python-openxml/python-docx/issues/212 |
| og:image:alt | Hello, It seems that python-docx does not have any built in support for '.docm' OOXML documents. From the perspective of parsing this document type as a docx, there is not much difference: There ar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 3vocati |
| 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