Release v1.2.2

DuckX is a C++ library for creating and editing Microsoft Word (.docx) files.

How to install

The instructions to install DuckX

git clone
cd DuckX
mkdir build
cd build
cmake ..
cmake --build .


How to start with the DuckX quickly

#include <iostream>
#include <duckx/duckx.hpp>

int main() {

    duckx::Document doc("file.docx");;

    for (auto p : doc.paragraphs())
        for (auto r : p.runs())
            std::cout << r.get_text() << std::endl;

    return 0;


Do you have an issue using DuckX? Feel free to let me know on issue tracker


It is freely available for use under the terms of MIT.