Skip to main content

# PyRTF - Rich Text Format Document Generation

[![build status][1]][2]

PyRTF is a set of python classes that make it possible to produce RTF documents from python programs. The library has no external dependancies and in my own testing has proved reliable and fast. Three examples are included in the release that demonstrate some of the features of the library, I’ll be adding to these when I can.

PyRTF has been tested on the following OS’s; W2K, WinXP, GNU/Linux, OpenBSD, FreeBSD and on the following Word Processors; OpenOffice, Word95, Word97, Word2000, WordXP and MacWord (not sure which version).

## Features

### Styles

A standard style sheet is provided but custom style sheets can be created which makes it possible to create suites of documents that conform to organisational guidelines.

Styles can be overridden down to almost any level, so the basic structure of the document can rely on the style sheet and only those areas that need to be different can be modified. For example bold, italic, underlining, etc can be applied to only the text items that require it.

### Document Sections

Documents can contain multiple sections, each section can have its own page size, style sheet, header and footer. Headers and footers that apply only to the first page of a section are supported.

### Tables

There is extensive support for tables, almost all of the table features provided by RTF are represented in PyRTF. Tables are built up from earlier building blocks so once you are familiar with the basics, tables are relatively easy to handle.

### Images

PNG and JPG images are supported.

Original Author: Simon Cusack, scusack@sourceforge.net

[1]: https://ci.appveyor.com/api/projects/status/github/xoviat/pyrtf?branch=master&svg=true [2]: https://ci.appveyor.com/project/xoviat/pyrtf

Metadata

Release files for PyRTF3 0.47.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyRTF3 0.47.5
File Size Uploaded
PyRTF3-0.47.5.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyRTF3 0.47.5
File Interpreter ABI Platform
PyRTF3-0.47.5-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / PyRTF3-0.47.5.tar.gz

Download URL PyRTF3-0.47.5.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c50a998f9d96e49cc49cf05e117a9b73181763620154ef88bb17aa664b531e1b
BLAKE2b-256 checksum
How to use checksums
29ff8b53dd7327286ab3d91fa268c4559f5203075c16fb4bb0ce84ff39ecc7b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyRTF3-0.47.5-py3-none-any.whl

Download URL PyRTF3-0.47.5-py3-none-any.whl
Size 40.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc76d7f0c7a9bf24364d89b2beb47989e4dc396b722326319698790ddab709c1
BLAKE2b-256 checksum
How to use checksums
b73db5fcf5dab1a7f4879b0a53f9908a66f6ce496fd119722aa7fc070027247b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.47.5 This release

2 release files

0.47.3

1 release file

0.47.2

1 release file

0.47.1

1 release file

0.47

1 release file

0.46

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page