[reportlab-users] Using images in a Drawing
Dinu Gherman
gherman at darwin.in-berlin.de
Wed Jan 11 11:45:42 EST 2006
Hi,
I haven't been using RL for a while... Whats wrong with the
code below, trying to use images in a Drawing object?
Adding the image makes a difference to the size of the re-
sulting PDF, but it is not visible anywhere.
Thanks,
Dinu
from reportlab.graphics import shapes, renderPDF
d = shapes.Drawing(400, 200)
img = shapes.Image(0,0, 200,100, "image.jpg")
d.add(img)
renderPDF.drawToFile(d, "image.pdf")
More information about the reportlab-users
mailing list