What problem does it solve?
Produce, modify, and reformat Word (.docx) documents reliably without manual Word editing, preventing OpenXML corruption and ensuring output complies with style and template constraints. It eliminates fragile copy-paste workflows, broken templates, and ad-hoc formatting fixes by providing structured pipelines, tested C# samples, and validation gates.
Core Features & Use Cases
- Professional DOCX creation from structured JSON or content (custom styles, multi-section layouts, TOC, images).
- Fill and edit existing .docx safely (placeholder substitution, table and image updates, run/paragraph-aware replacements).
- Template application and re-styling with robust styleId mapping, relationship remapping, and a mandatory XSD/business-rules gate-check.
- C# OpenXML SDK samples for structural edits, CLI tools for common tasks, environment checks, .doc→.docx conversion, preview and diff verification.
- CJK and government-template support (preserve eastAsia fonts, GB/T 9704 rules, thesis-style numeric styleIds).
Quick Start
Run scripts/env_check.sh to verify your environment, then use the CLI or provided C# samples to create or edit a .docx and run the validation pipeline before delivering the file.