项目
在 GitHub 查看
And compile your file like this:
amiremohamadi/DuckX
关于
用于创建和修改 Microsoft Word(.docx)文件的 C++ 库
开发工具实测星标增长
- 24小时
- 0
- 7天
- -2
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
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
- Documents (docx) [Word]
- Read/Write/Edit
- Change document properties
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;
}
And compile your file like this:
g++ sample1.cpp -lduckx
- See other Examples
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.

BITCOIN: bc1qex0wdwp22alnmvncxs3gyj5q5jaucsvpkp4d6z
Licensing
This library is available to anybody free of charge, under the terms of MIT License (see LICENSE.md).
探索相关项目
加载中…