pyRTF and cells

Tim Churches tchur at
Wed Mar 15 20:42:35 CET 2006

Raja Raman Sundararajan wrote:
> Hello,
>     I have been playing around with pyRTF module for generating rtf
> documents.
> Its a very nice tool that fits my basic needs. However I have a problem
> controlling cells in
> a table.
> I am not able to
> 1. do an align right of contents inside a cell
> 2. set backgroundcolor of a cell
> 3. I wonder if there is a property to set cell height (?)
> Do you guys have any input on this?

Yes. The correct approach is to:

a) do a Google search on "RTF specification", find the latest version of
the RTF specs, and read through them to determine whether what you want
to do is supported by RTF itself. If it is, then:

b) Ask Simon Cusack, the author of PyRTF, whether PyRTF supports these
attributes or if not, the best way to go about adding support for them, or

c) just add the features yourself to PyRTF and send Simon a copy of your
modified code.


Tim C

More information about the Python-list mailing list