# rdocx

> Native DOCX creation, editing, comparison, layout, and rendering

Source: https://talira.ai/catalog/rdocx-w47ztd3z
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [documents / office](https://talira.ai/categories/documents/office), [documents / pdf / conversion / docx to pdf](https://talira.ai/categories/documents/pdf/conversion/docx-to-pdf), [documents / office / comparison](https://talira.ai/categories/documents/office/comparison), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0[^1][^4][^5]
- Pricing: Free and open source[^1][^3]
- Pricing notes: MIT or Apache-2.0, at your option.
- Free tier: yes[^1][^3]
- Self-hostable: yes[^1]
- Backed by: [TensorBee](https://talira.ai/orgs/tensorbee.md)

rdocx is a Rust document stack for Word files: one `Document` that creates, opens, edits, validates and saves .docx packages, keeps XML it doesn't model byte for byte, and lays the result out with its own engine to export PDF, PDF/A, page images, HTML, Markdown, ODT, RTF and EPUB without [Microsoft Word](https://talira.ai/catalog/microsoft-word-pb8ghn21.md) or [LibreOffice](https://talira.ai/catalog/libreoffice-htqdk2xd.md). The same engine is exposed as the `rdocx` command-line tool (crate `rdocx-cli`), a Python package and a locally built WebAssembly package. The CLI inspects, converts, renders, compares and validates documents, fills content controls, manages comments and accepts or rejects tracked revisions. Converting to PDF shows the accepted text by default; `--revision-view tracked` shows both sides of tracked changes, and `--revision-style legal` colours insertions blue with a double underline and deletions red and struck through. Tensorbee started it in February 2026.

## Links

- GitHub: https://github.com/tensorbee/rdocx
- Docs: https://docs.rs/rdocx

## Problems it solves

- convert DOCX to PDF from a shell script without installing Word or LibreOffice
- render a Word redline to PDF so both the inserted and the deleted text show
- produce a legal-style comparison PDF with blue double-underlined insertions and red struck deletions
- compare two versions of a Word document and get a tracked-changes .docx
- accept or reject tracked changes in a Word file by author or date from the command line
- open a customer's Word template, replace placeholders and save it without losing parts my code doesn't understand
- fill Word content controls from a JSON file in a batch job
- create Word documents with styles, tables and numbering from Rust
- export a .docx to HTML or Markdown for a web page or an LLM pipeline
- check a Word file for broken relationships and missing styles before sending it out
- rasterise pages of a Word document to PNG for previews
- edit and render Word documents from Python without Office installed
- add, reply to or resolve comments in a Word document from a script
- rebuild the table of contents of a Word file without opening Word

## Features

- create, open, edit, validate and save .docx, .docm, .dotx and .dotm packages
- keeps unmodelled XML byte for byte when saving
- native Word layout with bundled metric-compatible fonts for deterministic output
- PDF, PDF/A, PNG, JPEG, TIFF and SVG output
- HTML, Markdown, MHTML, RTF, ODT and EPUB output
- tracked changes rendered with --revision-view tracked, optionally in a legal colour style
- document comparison at run, word or character granularity into a tracked-changes .docx
- list, accept and reject tracked revisions by id, author or date range
- comment threads: list, add, reply, resolve and remove
- content control and legacy form filling from --tag or JSON values
- placeholder replacement, field cache updates and table of contents rebuilds
- opt-in agile encryption and digital signatures
- rdocx CLI, Python package and WebAssembly package over the same engine

## Limitations

- Doesn't open binary Word .doc or Word 2003 XML files: the README calls them permanent non-goals[^1]
- Doesn't export the tracked-changes view to HTML or Markdown: those conversions refuse --revision-view tracked[^2]
- Doesn't run macros, ActiveX, OLE objects or add-ins: it keeps them in the file without executing them[^1]

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by TensorBee

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [docxide-pdf](https://talira.ai/catalog/docxide-pdf-qymkcerx.md): Library and CLI for converting DOCX files to PDF, matching Microsoft Word's output as closely as possible
- [jubarte](https://talira.ai/catalog/jubarte-7tqbz11s.md): Word-faithful DOCX redlines and rendering, without Word
- [Aspose.Words](https://talira.ai/catalog/aspose-words-4k0hy0ew.md): Create, edit, render and convert Word documents to multiple formats without using external software
- [python-docx](https://talira.ai/catalog/python-docx-tj4sn5d1.md): Create and modify Word documents with Python
- [docx4j](https://talira.ai/catalog/docx4j-mcywg4m2.md): JAXB-based Java library for Word docx, Powerpoint pptx, and Excel xlsx files

## Sources

[^1]: https://github.com/tensorbee/rdocx (checked 20 Nov 2026)
[^2]: https://github.com/tensorbee/rdocx/blob/main/crates/rdocx-cli/README.md (checked 20 Nov 2026)
[^3]: https://github.com/tensorbee/rdocx/blob/main/LICENSE (checked 20 Nov 2026)
[^4]: https://crates.io/crates/rdocx (checked 20 Nov 2026)
[^5]: https://pypi.org/project/rdocx/ (checked 20 Nov 2026)
