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

Tim Roberts timr at probo.com
Mon Mar 21 17:05:50 EDT 2011

slothy Rulez a lot wrote:

> Ummm, it's much simpler than that, the image axys positioned over

> everything, something like drawing with the canvas drawImage method.

> ¿Is there any flowable? a water mark could be valid too.

When you call "build" on your SimpleDocTemplate, you can specify
onFirstPage and onLaterPages functions. Those are called at the
beginning of each page, and they are passed a canvas for the whole
page. They are called before drawing begins. If you need a callback
after drawing ends, you'll have to create your own page templates with
an "afterDrawPage" method. That means using BaseDocTemplate instead of

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the reportlab-users mailing list