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