[Zope] ReportLab + Zope : here's a working example

Tom Deprez Tom Deprez" <tom.deprez@uz.kuleuven.ac.be
Wed, 13 Feb 2002 16:17:08 +0100


I haven't looked at the code yet, but I remember having the same problems
with my report lab pdf creation...
When I opened the created pdf file with the 'rb' parameter it worked
perfectly...

as in return open(filename,'rb').read()

Regards,
Tom.
----- Original Message -----
From: "Jerome Alet" <alet@unice.fr>
To: "Juergen R. Plasser / HEXAGON" <plasser@hexagon.at>
Cc: <zope@zope.org>
Sent: Wednesday, February 13, 2002 3:28 PM
Subject: Re: [Zope] ReportLab + Zope : here's a working example


> On Wed, 13 Feb 2002, Juergen R. Plasser / HEXAGON wrote:
>
> > Thanks for your helpful example.
>
> it would be more helpful if it worked everywhere... (any help
> appreciated)
>
> > I have some problems including the logo image (I used a gif image). I
>
> should work, my test image is a .gif
>
> > always get an error (pdf does not start with '%PDF-') from Mozilla and
IE6
> > and the file is not created. Maybe a PIL problem? I am using Zope 2.5
and
> > PIL 1.1.2 for Python 2.1 on Win2k.
>
> My successful tests were done on :
>
> Debian GNU/Linux 3.0 (Woody)
> Zope 2.4.2 (Debian standard package)
> Python 2.1.2 (Debian standard package)
> Mozilla 0.9.7 (Debian standard package)
> Netscape 4.77 (Debian standard package)
> Adobe Acrobat Reader 4.05 (Debian standard package)
>
> and on the same system, with the help of VMWare (3.0.0 build 1455) :
>
> Windows 98
> Internet Explorer 5.00.2614.3500
> Netscape 6.2
> Adobe Acrobat Reader 5.05
>
> Under Windows the pdf file is not opened in the browser window, but
> Acrobat Reader is launched and the file is read correctly. The same if I
> save the file then open it later with Acrobat Reader. It works the same
> whatever browser I use.
>
> BTW the script was updated with the help of Robin Becker from the
> ReportLab team, to take care of installations made in the "Shared"
> directory, find it at :
>
> http://cortex.unice.fr/~jerome/RLfromZope/
>
> hth.
>
> Jerome Alet
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )