{"id":13371716,"url":"https://github.com/amiremohamadi/duckx","last_synced_at":"2025-04-04T14:06:27.203Z","repository":{"id":34198190,"uuid":"168589083","full_name":"amiremohamadi/DuckX","owner":"amiremohamadi","description":"C++ library for creating and modifying Microsoft Word (.docx) files","archived":false,"fork":false,"pushed_at":"2024-06-12T12:03:14.000Z","size":797,"stargazers_count":445,"open_issues_count":31,"forks_count":112,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-28T13:05:27.660Z","etag":null,"topics":["cpp","cpp-library","docx","docx-files","office"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amiremohamadi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://github.com/amiremohamadi/DuckX#donation"}},"created_at":"2019-01-31T20:10:18.000Z","updated_at":"2025-03-23T05:16:27.000Z","dependencies_parsed_at":"2024-06-12T14:16:42.304Z","dependency_job_id":"5013ccf5-4550-489e-8fe4-17ab6690d395","html_url":"https://github.com/amiremohamadi/DuckX","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiremohamadi%2FDuckX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiremohamadi%2FDuckX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiremohamadi%2FDuckX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiremohamadi%2FDuckX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amiremohamadi","download_url":"https://codeload.github.com/amiremohamadi/DuckX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247186192,"owners_count":20898114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp-library","docx","docx-files","office"],"created_at":"2024-07-30T03:00:44.871Z","updated_at":"2025-04-04T14:06:27.183Z","avatar_url":"https://github.com/amiremohamadi.png","language":"C++","funding_links":["https://github.com/amiremohamadi/DuckX#donation"],"categories":["سی پلاس پلاس C++"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/amiremohamadi/DuckX/blob/master/img/logo.png\" width=\"380\"\u003e\u003c/p\u003e\n\n[![Build Status](https://travis-ci.com/amiremohamadi/DuckX.svg?branch=master)](https://travis-ci.com/amiremohamadi/DuckX)\n[![GitHub license](https://img.shields.io/github/license/amiremohamadi/duckx)](https://github.com/amiremohamadi/duckx/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/v/release/amiremohamadi/duckx)](https://github.com/amiremohamadi/DuckX/releases)\n[![Twitter follow](https://img.shields.io/twitter/follow/amiremohamadi?style=social)](https://twitter.com/amiremohamadi)\n\n\n# DuckX\n\nCreate, read and write Microsoft Office Word docx files.\nMore informations are available in [this](https://duckx.readthedocs.io/en/latest/) documentation.\n\n\n\u003e DuckX was created when I was looking for a C++ library which can properly parse MS Word .docx files, but couldn't find any\n\n## Status ##\n\n- Documents (docx) [Word]\n\t- Read/Write/Edit\n\t- Change document properties\n\n## Quick Start\n\nHere'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:\n```c++\n#include \u003ciostream\u003e\n#include \u003cduckx/duckx.hpp\u003e\n\nint main() {\n\n    duckx::Document doc(\"file.docx\");   \n\n    doc.open();\n\n    for (auto p : doc.paragraphs())\n\tfor (auto r : p.runs())\n            std::cout \u003c\u003c r.get_text() \u003c\u003c std::endl;\n}\n```\n\n\u003cbr/\u003e\nAnd compile your file like this:\n\n```bash\ng++ sample1.cpp -lduckx\n```\n\n* See other [Examples](https://github.com/amiremohamadi/DuckX/tree/master/samples)\n\n\n## Install ##\n\nEasy as pie!\n\n#### Compiling\n\nThe preferred way is to create a build folder\n```bash\ngit clone https://github.com/amiremohamadi/DuckX.git\ncd DuckX\nmkdir build\ncd build\ncmake ..\ncmake --build .\n```\n\n## Requirements ##\n\n- [zip](https://github.com/kuba--/zip)\n- [pugixml](https://github.com/zeux/pugixml)\n\n\n### Donation\n\u003e Please consider donating to sustain our activities.\n\u003cp align=\"left\"\u003e\u003cimg src=\"img/btcqr.png\" width=\"280\"\u003e\u003c/p\u003e\n\nBITCOIN: bc1qex0wdwp22alnmvncxs3gyj5q5jaucsvpkp4d6z\n\n\n### Licensing\n\nThis library is available to anybody free of charge, under the terms of MIT License (see LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiremohamadi%2Fduckx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famiremohamadi%2Fduckx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiremohamadi%2Fduckx/lists"}