Re: A python library to convert RTF into PDF ?

2007-01-04 Thread leonel . gayard
> Why not use OO.org to convert DOC to PDF? It does so natively, IIRC. I can't insert variables if the template is a DOC file. This is why we are using RTF. Felipe Almeida Lessa wrote: > On 3 Jan 2007 10:52:02 -0800, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > I have tried to > > convert

Re: A python library to convert RTF into PDF ?

2007-01-03 Thread leonel . gayard
No, this won't work. First, pdflatex is too slow. Second, my templates are M$-Word doc files, and they cannot be easily converted to tex. I have tried to convert them to tex using OpenOffice, but the result is ugly as hell. I cannot convert the doc files into PDF, because I do not have a library

A python library to convert RTF into PDF ?

2007-01-03 Thread leonel . gayard
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

How can I import a script with an arbitrary name ?

2006-10-30 Thread leonel . gayard
Hi all, I have a script responsible for loading and executing scripts on a daily basis. Something like this: import time t = time.gmtime() filename = t[0] + '-' + t[1] + '-' + t[2] + '.py' import filename So, I have a module with an arbitrary file name and I want to load it, and later access its

What is the best way to print the usage string ?

2006-08-03 Thread Leonel Gayard
Hi all, I had to write a small script, and I did it in python instead of shell-script. My script takes some arguments from the command line, like this. import sys args = sys.argv[1:] if args == []: print """Concat: concatenates the arguments with a colon (:) between them Usage: concat ar