Simplified Chinese | 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.
- English documentation: https://wuxianggujun.github.io/FeatherDoc/en/
- Simplified Chinese documentation: https://wuxianggujun.github.io/FeatherDoc/zh-CN/
- English API reference: https://wuxianggujun.github.io/FeatherDoc/en/api/
- Simplified Chinese API reference: https://wuxianggujun.github.io/FeatherDoc/zh-CN/api/
- English getting started: https://wuxianggujun.github.io/FeatherDoc/en/getting_started.html
- Simplified Chinese getting started: https://wuxianggujun.github.io/FeatherDoc/zh-CN/getting_started.html
- Word document workflows: https://wuxianggujun.github.io/FeatherDoc/en/word_document_workflow.html
- PDF workflows: https://wuxianggujun.github.io/FeatherDoc/en/api/pdf_workflow.html
- Source docs:
docs/index.rst - Documentation maintenance:
docs/documentation_maintenance_zh.rst - Script task index:
docs/script_task_index_zh.rst
- Create and edit
.docxpackages. - 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_clifor scriptable inspection and one-shot rewrites.
cmake -S . -B build
cmake --build build
cmake --install build --prefix installRun the project-template smoke path that validates the Chinese invoice template, renders it from business JSON, and writes review artifacts:
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 `
-SkipVisualSmokeMinimal C++ usage:
#include <featherdoc.hpp>
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;
}devis the active development branch.masteris kept as the stable/release branch.- Codex/local automation work should continue directly on the current
devbranch by default. Do not createcodex/*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.
- GPT access and promotion link: https://shop.input.im/?code=fbe6f3d5
- Sponsor QR codes are kept below.
If this project helps your work, you can support ongoing maintenance via the following support QR codes.
Left: Alipay. Right: WeChat Appreciation.
This fork should be described as source-available rather than open source for
its fork-specific modifications. See LICENSE,
LICENSE.upstream-mit, and NOTICE.

