An upgraded version of Duckx that supports adding picture, etc.
Create, read and write Microsoft Office Word docx files. More informations are available in this documentation.
- Documents (docx) [Word]
- Read/Write/Edit
- Change document properties
- Add picture in Paragraph
- Add text in Paragraph
Easy as pie!
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 <docxx/duckx.hpp>
int main() {
docxx::Document doc("file.docx", true);
for (auto p : doc.paragraphs())
for (auto r : p.runs())
r.add_picture(doc, R"(E:\Temp\Test\view.png)", 110, 140);
}
And compile your file like this:
g++ sample1.cpp -ldocxx
- See other Examples
This library is available to anybody free of charge, under the terms of MIT License (see LICENSE.md).