What problem does it solve?
Provide reliable, production-grade workflows for creating, analyzing, and editing .docx documents while preserving formatting, supporting tracked changes (redlining), and adding reviewer comments so that professional documents can be generated and reviewed programmatically.
Core Features & Use Cases
- Document creation: Generate studio-quality Word files using docx-js (bun) with mandatory formatting rules (1.3x line spacing, centered charts, headers/footers, TOC behavior).
- Editing & redlining: Precise tracked-change workflows using an OOXML Document library that supports minimal, targeted edits, RSID-managed revisions, batching, and validation.
- Comments & review: Simple, recommended python-docx workflow for adding comments with author set to Z.ai, plus advanced OOXML methods for low-level control.
- Utilities & validation: Tools to unpack/pack Office files, add TOC placeholders, validate relationships and schemas, and safely insert images and media.
- Use case: Apply redline edits and reviewer comments to a legal contract, produce a TOC with placeholders for first-open display, and pack a validated .docx ready for distribution.
Quick Start
Add comments to document.docx for every paragraph that contains the phrase "needs review", set the comment author to Z.ai, and save the result as reviewed.docx.