Skip to content

rtflite

PyPI version Python versions Checked with mypy CI Tests mkdocs License

Lightweight RTF composer for Python.

Specializes in precise formatting of production-quality tables and figures. Inspired by r2rtf.

Installation

You can install rtflite from PyPI:

pip install rtflite

Or install the development version from GitHub:

git clone https://github.com/pharmaverse/rtflite.git
cd rtflite
python3 -m pip install -e .

Install LibreOffice (optional)

rtflite can convert RTF documents to PDF using LibreOffice. To enable this feature, install LibreOffice (free and open source, MPL license).

See the converter setup guide for detailed instructions.

Contributing

We welcome contributions to rtflite. Please read the rtflite Contributing Guidelines to get started.

All interactions within rtflite repositories and issue trackers should adhere to the rtflite Contributor Code of Conduct.

License

This project is licensed under the terms of the MIT license.