[reportlab-users] retrieving an Image file.

Jody Burgess reportlab-users@reportlab.com
Wed, 7 Jul 2004 15:30:57 -0600


Hi;
	Using the following code,

from reportlab.pdfgen import canvas
from reportlab.lib.units import inch

image = r"c:/window/web/wallpaper/azul.jpg"
width = 7.5 * inch
height = 9.5 * inch
x = 10.25 * inch
y = 0.5 * inch
my_canvas = canvas.drawImage(self, image, width=x, height=y, mask=none)

to retrieve an image file and put it onto the canvas, gives this error;

    my_canvas = canvas.drawImage(self, image, width=x, height=y, mask=none)
AttributeError: 'module' object has no attribute 'drawImage'

Am I using the drawImage() function correctly?

Jody Burgess ISP
Systems Analyst
Seward Consulting Ltd.
780.702.5103
jody.burgess@sewardconsulting.com