[reportlab-users] Draw images with canvas and use SimpleDocTemplate

slothy Rulez a lot slothyrulez at gmail.com
Mon Mar 21 16:08:01 EDT 2011


Sorry,

In front of the text, positioned like the canvas.drawImage method.

2011/3/21 Tim Roberts <timr at probo.com>


> slothy Rulez a lot wrote:

> >

> > I'm newbee using reportlab, I'm writing pdfs with reportlab inside a

> > django view, they are very simple, the header, the contents and the

> > footer.

> >

> > I'm using SimpleDocTemplate wich fits very well, to draw tables in the

> > contents, the footer and the header are drwan using:

> >

> > build([data], onFirstPage=drawPageFrame, onLaterPages=drawPageFrame).

> > My question is, How can I draw a image like using

> > Canvas.drawImage(...)? I need a "floating" image... positioned over

> > the text where I want, and with SimpleDocTemplate I don't have a

> > Canvas object to do this.

>

> What do you mean by "floating", exactly? Are you trying to draw a

> watermark image on the page, behind the text? Does the image need to

> flow with the text, attached to some particular word, like an <image>

> tag? Does the text need to wrap around the image?

>

> There may be a way to do what you need, but we'd need more information.

>

> --

> Tim Roberts, timr at probo.com

> Providenza & Boekelheide, Inc.

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at lists2.reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>




--
Alex.
Slothy, the Angry Wombat
http://angrywombat.comuv.com/portfolio/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20110321/e44d51c4/attachment.html>


More information about the reportlab-users mailing list