[Zope] pdf generator troubles

Erik Myllymaki Erik Myllymaki <erik.myllymaki@pacific-shores.com>
Sat, 15 Jun 2002 10:51:39 -0700


thanks, that was the problem ;-)

----- Original Message -----
From: "Jerome Alet" <alet@librelogiciel.com>
To: "Erik Myllymaki" <erik.myllymaki@pacific-shores.com>
Cc: <zope@zope.org>
Sent: Saturday, June 15, 2002 10:41 AM
Subject: Re: [Zope] pdf generator troubles


> 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
>