By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,742 Members | 1,044 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,742 IT Pros & Developers. It's quick & easy.

Generating RTF with Python

P: n/a
Hi,

does anyone know of a high-level solution to produce RTF from Python
(something similar to
Reportlab for producing PDF)?

Thanks,
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCTALCCJIWIbr9KYwRArzzAJ9m2LFEcgg8ZW+jXlKss8 +s/R0TYQCaAwUS
BWDXomEUZ+wh3A9LRpkkcsc=
=7WVd
-----END PGP SIGNATURE-----

Jul 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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/showp...2&postcount=10
Jul 18 '05 #2

P: n/a
Axel Straschil wrote:
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 ... ;-(

I looked at this a while ago, which might be a starter.

http://pyrtf.sourceforge.net/
--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science
Jul 18 '05 #3

P: n/a
Hello!
I looked at this a while ago, which might be a starter.
http://pyrtf.sourceforge.net/


Don't remember why I didn't spent much time on that. Sombody has
experience with pyrtf on an production project (is it stable ;-))

Lg,
AXEL.
--
"Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in
http://www.informatik-forum.at/showp...2&postcount=10
Jul 18 '05 #4

P: n/a
Axel Straschil <ax**@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,
AXEL.
--
"Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in
http://www.informatik-forum.at/showp...2&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).

--
ha************@boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 294-4718
Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.