Create a Multilanguage PDF in Python

Rob Wolfe blue99 at interia.pl
Wed Aug 23 05:26:29 EDT 2006


Perseo wrote:
> Nothing to do!
> I enable test2.py and the folder with 777 permission and I write at the
> top of the file the PYTHONPATH "#!/usr/bin/python" as you told me but
> it doesn't works as well.

#!/usr/bin/python is not PYTHONPATH. I think you should
read this:
http://docs.python.org/tut/node4.html#SECTION004220000000000000000

> The verdana font doesn't exist in the reportlab fonts folder. I try to
> delete the rows where it is called like (registerFont, setFont) but
> nothing to do.

Fonts are not part of reportlab package. You should find it
in your OS or in the net. You need to know what font do you want to
use.

> any suggestion?!

Install reportlab package in your home directory, for example
/home/perseo/python/lib

and then in the shell write this:

export PYTHONPATH=/home/perseo/python/lib

and look here:
http://docs.python.org/tut/node8.html#SECTION008110000000000000000

HTH,
Rob




More information about the Python-list mailing list