[reportlab-users] problem with rlzope and reportlab
John Pywtorak
reportlab-users@reportlab.com
Thu, 27 May 2004 14:11:27 -0700
I have a debian sytem with python-reportlab version 1.19debian-0.1 which is
what is in unstable and I don't see what you have.
I think you meant line 128? In the file: reportlab/pdfgen/pdfimages.py which
does not have a self.JAVA_imagedata() method.
Are you on something newer than what is in unstable?
On Tuesday 25 May 2004 02:19 am, Samuele Giovanni Tonon wrote:
> hi,
> while playing with reportlab 1.19 on a debian unstable i noticed some
> problem with rlzope.py (the external method to use it to create pdf
> files) .
> The problem is when i have to insert an image:
> on rlzope.py on line 75
>
> canvas.drawImage(image, inch, doc.pagesize[1] - inch, width, height)
> should be replaced with
> canvas.drawInlineImage(image, inch, doc.pagesize[1] - inch, width,
> height)
>
> or you will get an
> rawdata = image.getRGBData() AttributeError: JpegImageFile instance has
> no attribute 'getRGBData'
>
> after solving this problem i found a problem in
> reportlab/pdfgen/pdfimages.py
>
> in which you have to add
> import sys
> to make line 138 to 142 work:
>
> if sys.platform[0:4] == 'java':
> #jython, PIL not available
> (imagedata, imgwidth, imgheight) = self.JAVA_imagedata()
> else:
> (imagedata, imgwidth, imgheight) = self.PIL_imagedata()
>
>
> i'm not sure if this is a problem related only to debian (because
> of a lack on the package) or it's related to reportlab and rlzope,
> however, while in doubt i thought it could be nice to alert you all
> about this problem, sorry if it bothers you.
>
> Regards
> Samuele
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users