#! rnews 1765 Newsgroups: comp.lang.python Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!195.241.76.212.MISMATCH!transit1.news.tiscali.nl!tiscali!transit0.news.tiscali.nl!tudelft.nl!130.161.131.117.MISMATCH!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 <[EMAIL PROTECTED]> Subject: Re: Generating RTF with Python X-Nntp-Posting-Host: cola2.ca.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <[EMAIL PROTECTED]> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Lines: 37 Sender: [EMAIL PROTECTED] Organization: The Boeing Company References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Mime-Version: 1.0 Date: Thu, 31 Mar 2005 20:56:42 GMT Xref: news.xs4all.nl comp.lang.python:370154
Axel Straschil <[EMAIL PROTECTED]> 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, > AXEL. > -- > "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: http://www.seanet.com/~hgg9140/comp/index.html#L007 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). -- [EMAIL PROTECTED] 6-6M21 BCA CompArch Design Engineering Phone: (425) 294-4718 -- http://mail.python.org/mailman/listinfo/python-list