(no subject)

Thu Mar 31 23:15:01 CEST 2005

#! rnews 1765
Newsgroups: comp.lang.python
Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!!transit1.news.tiscali.nl!tiscali!transit0.news.tiscali.nl!tudelft.nl!!tudelft.nl!newsfeed.multikabel.nl!gatel-ffm!gatel-ffm!proxad.net!proxad.net!newsread.com!news-xfer.newsread.com!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp
From: Harry George <harry.g.george at boeing.com>
Subject: Re: Generating RTF with Python
X-Nntp-Posting-Host: cola2.ca.boeing.com
Content-Type: text/plain; charset=us-ascii
Message-ID: <xqxd5tfo7p1.fsf at cola2.ca.boeing.com>
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
Lines: 37
Sender: hgg9140 at cola2.ca.boeing.com
Organization: The Boeing Company
References: <mailman.1137.1112277702.1799.python-list at python.org> <slrnd4o7hd.h5k.axel at m2.sine>
Mime-Version: 1.0
Date: Thu, 31 Mar 2005 20:56:42 GMT
Xref: news.xs4all.nl comp.lang.python:370154

Axel Straschil <axel at straschil.com> writes:

> Hello!
> > does anyone know of a high-level solution to produce RTF from Python=20
> > (something similar to
> > Reportlab for producing PDF)?
> Spend hours of googeling and searching, also in this NG, about two
> months ago. My conclusion is: On windwos, maybe you can include some
> hacks with dll's, under linux, linux support for generating rtf is none,
> and so is python's.
> My workaround was: 
> http://www.research.att.com/sw/download/
> This includes an html2rtf converter, which I access from python via
> popen and temporary files. Not high-level, not very sexy ... ;-(
> Lg,
> -- 
> "Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in 
> http://www.informatik-forum.at/showpost.php?p=206342&postcount=10

I generate docbook and convert that to rtf.  I generate the docbook
from my pdx markup:


If you go this route, your python code is actually writing pdx, and
you need a 2 step conversion (pdx2docbook.py, then openjade for the
xml-to-rtf step).

harry.g.george at boeing.com 
6-6M21 BCA CompArch Design Engineering
Phone: (425) 294-4718

More information about the Python-list mailing list