docx
Installation
SKILL.md
DOCX creation, editing, and analysis
Where to look
| Task | Go to |
|---|---|
Create a new .docx (reports, memos, letters, formatted output) |
references/docx-js.md |
Edit an existing .docx (find-replace, tweak XML, add tracked changes) |
## Editing Existing Documents below |
| Raw OOXML / schema (tracked changes, comments, images at XML level) | references/ooxml.md |
| Accept all tracked changes | scripts/accept_changes.py |
| Add a comment | scripts/comment.py |
| Unpack / repack / validate | scripts/office/{unpack,pack,validate}.py |
Overview
A .docx file is a ZIP archive containing XML. Read it with pandoc, edit it
by unpacking the XML and repacking, or create a new one with the docx npm
package.