# FeatherDoc **Repository Path**: wuxianggujun/FeatherDoc ## Basic Information - **Project Name**: FeatherDoc - **Description**: Modern C++ .docx library with MSVC support, Word visual validation, and existing-document editing APIs - **Primary Language**: PowerShell - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2026-06-05 - **Last Updated**: 2026-09-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FeatherDoc [![Windows MSVC CI](https://github.com/wuxianggujun/FeatherDoc/actions/workflows/windows-msvc.yml/badge.svg?branch=dev)](https://github.com/wuxianggujun/FeatherDoc/actions/workflows/windows-msvc.yml) [![Linux CMake CI](https://github.com/wuxianggujun/FeatherDoc/actions/workflows/linux-cmake.yml/badge.svg?branch=dev)](https://github.com/wuxianggujun/FeatherDoc/actions/workflows/linux-cmake.yml) [![macOS CMake CI](https://github.com/wuxianggujun/FeatherDoc/actions/workflows/macos-cmake.yml/badge.svg?branch=dev)](https://github.com/wuxianggujun/FeatherDoc/actions/workflows/macos-cmake.yml) [Simplified Chinese](README.zh-CN.md) | English FeatherDoc is a C++20 library for creating, reading, editing, inspecting, and rewriting Microsoft Word `.docx` files. This README is intentionally short. Detailed API pages, workflows, release governance, PDF notes, and visual validation material live in the documentation site. ## Documentation - English documentation: - Simplified Chinese documentation: - English API reference: - Simplified Chinese API reference: - English getting started: - Simplified Chinese getting started: - Word document workflows: - PDF workflows: - Source docs: [`docs/index.rst`](docs/index.rst) - Documentation maintenance: [`docs/documentation_maintenance_zh.rst`](docs/documentation_maintenance_zh.rst) - Script task index: [`docs/script_task_index_zh.rst`](docs/script_task_index_zh.rst) ## What You Can Build - Create and edit `.docx` packages. - Edit paragraphs, runs, tables, rows, cells, styles, numbering, sections, headers, and footers. - Fill bookmarks and content controls by tag or alias. - Replace template slots with text, paragraphs, tables, rows, and images. - Inspect fields, hyperlinks, comments, footnotes, endnotes, revisions, images, styles, numbering, and semantic document differences. - Use `featherdoc_cli` for scriptable inspection and one-shot rewrites. ## Quick Start ```bash cmake -S . -B build cmake --build build cmake --install build --prefix install ``` Run the project-template smoke path that validates the Chinese invoice template, renders it from business JSON, and writes review artifacts: ```powershell powershell -ExecutionPolicy Bypass -File .\scripts\run_project_template_smoke.ps1 ` -ManifestPath .\samples\project_template_smoke.manifest.json ` -BuildDir .\build ` -OutputDir .\output\project-template-smoke ` -SkipBuild ` -SkipVisualSmoke ``` Minimal C++ usage: ```cpp #include int main() { featherdoc::Document doc{"template.docx"}; if (doc.open()) { return 1; } doc.body_template().replace_content_control_text_by_tag("customer", "Ada"); return doc.save_as("output.docx") ? 1 : 0; } ``` ## Branch Policy - `dev` is the active development branch. - `master` is kept as the stable/release branch. - Codex/local automation work should continue directly on the current `dev` branch by default. Do not create `codex/*` or other task branches unless the maintainer explicitly requests a new branch. - Release tags should be created only after version, changelog, CI, and release checks are aligned. ## Support / GPT Access - GPT access and promotion link: - Sponsor QR codes are kept below. ## Sponsor If this project helps your work, you can support ongoing maintenance via the following support QR codes.

Alipay QR Code WeChat Appreciation QR Code

Left: Alipay. Right: WeChat Appreciation.

## License This fork should be described as source-available rather than open source for its fork-specific modifications. See [`LICENSE`](LICENSE), [`LICENSE.upstream-mit`](LICENSE.upstream-mit), and [`NOTICE`](NOTICE).