Home

Awesome

<p align="center"><img src="https://github.com/amiremohamadi/DuckX/blob/master/img/logo.png" width="380"></p>

Build Status GitHub license GitHub release Twitter follow

DuckX

Create, read and write Microsoft Office Word docx files. More informations are available in this documentation.

DuckX was created when I was looking for a C++ library which can properly parse MS Word .docx files, but couldn't find any

Status

Quick Start

Here's an example of how to use duckx to read a docx file; It opens a docx file named file.docx and goes over paragraphs and runs to print them:

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

int main() {

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

    doc.open();

    for (auto p : doc.paragraphs())
	for (auto r : p.runs())
            std::cout << r.get_text() << std::endl;
}
<br/> And compile your file like this:
g++ sample1.cpp -lduckx

Install

Easy as pie!

Compiling

The preferred way is to create a build folder

git clone https://github.com/amiremohamadi/DuckX.git
cd DuckX
mkdir build
cd build
cmake ..
cmake --build .

Requirements

Donation

Please consider donating to sustain our activities.

<p align="left"><img src="img/btcqr.png" width="280"></p>

BITCOIN: bc1qex0wdwp22alnmvncxs3gyj5q5jaucsvpkp4d6z

Licensing

This library is available to anybody free of charge, under the terms of MIT License (see LICENSE.md).