Skip to main content

PyRTF - Rich Text Format Document Generation

Project description

# 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,

[1]: [2]:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyRTF3, version 0.47.5
Filename, size File type Python version Upload date Hashes
Filename, size PyRTF3-0.47.5-py3-none-any.whl (40.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size PyRTF3-0.47.5.tar.gz (1.3 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page