Getting Started¶
This page is the English quick-start path for the /en/ documentation tree.
Install And Build¶
cmake -S . -B build
cmake --build build
cmake --install build --prefix install
Top-level builds enable BUILD_CLI by default, so featherdoc_cli is built
unless -DBUILD_CLI=OFF is passed explicitly.
PDF support is experimental and opt-in. Build FEATHERDOC_BUILD_PDF and
FEATHERDOC_BUILD_PDF_IMPORT only when you need the PDF workflow pages and
CLI entry points.
Minimal C++ Usage¶
#include <featherdoc.hpp>
int main() {
featherdoc::Document doc{"input.docx"};
if (doc.open()) {
return 1;
}
doc.paragraphs().add_run("Generated by FeatherDoc");
return doc.save_as("output.docx") ? 1 : 0;
}
Where To Go Next¶
Use Document for open/save, sections, headers, footers, inspection, and document-wide editing.
Use Word Document Workflows when you want a task-oriented path for generating, filling, reviewing, or batch-editing Word documents.
Use Paragraph And Run for paragraphs and runs.
Use Table, TableRow, And TableCell for tables, rows, and cells.
Use TemplatePart for bookmarks, content controls, template slots, and schema validation.
Use PDF Workflows for experimental PDF import and export workflows.