willsonlincake 发表于 2022-4-15 08:45:16

Qt编辑docx文件

https://github.com/amiremohamadi/DuckX

willsonlincake 发表于 2022-4-15 08:45:21

#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;
}
页: [1]
查看完整版本: Qt编辑docx文件