A python library to convert RTF into PDF ?
robert
no-spam at no-spam-no-spam.invalid
Wed Jan 3 14:55:53 EST 2007
leonel.gayard at gmail.com wrote:
> Hi,
>
> Does anyone know a good python library to convert a RTF file into PDF ?
>
> This should be done automaticaly: I have a web page that takes some
> values and inserts them into a RTF template, resulting in an RTF file.
> However, I cannot send the output back to the user in RTF, it must be
> sent in PDF instead, so I need to convert the result.
>
> So, what library can I use to convert from RTF to PDF ? GPL / BSD
> Libraries are welcome.
>
Don't know a mere self-contained job.
But probably then you are on a Windows - print the RTF through Word (win32com/ctypes) or through a RichEdit control into a .ps then convert via ghostscript/ps2pdf into a pdf. (gs obviously doesn't know RTF by default or at all...)
Robert
More information about the Python-list
mailing list