[Zope] pdf generator troubles

Jerome Alet alet@librelogiciel.com
Sat, 15 Jun 2002 19:41:40 +0200


On Sat, Jun 15, 2002 at 09:57:27AM -0700, Erik Myllymaki wrote:
>      import sys
>      f=open(pdf_filename)
>      y = f.read()
>      f.close()
>      return y
> ---------------------------------------------------
> 
> But I always get a *File is damaged* error no matter what PDF file I give

open(pdf_filename, "rb")

will probably solve your problem.

hth

Jerome Alet