[reportlab-users] Platypus + dividing lines ?

Tim Roberts timr at probo.com
Fri Mar 21 12:53:29 EDT 2008


reportlab at richardshea.fastmail.fm wrote:

> Hi - I'm a Platypus newb but I've succesfully created a two column

> layout. What I now what to do is to draw a line in between the columns

> and a line at the bottom of the columns which would cross the whole page

> (so that you'd end up with an inverted T shape of thin lines)

>

> I realise that I can use paths/lines (or I assume I can - not sure how

> they fit into Platypus use) but is there any higher level mechanism

> which I've overlooked to do this type of thing ? A sort of '<HR>' of

> Platypus ?

>


These lines are not "flowables", in that they don't change with the
story, so they won't really be part of the Platypus mainline.

Instead, just use the onFirstPage and onLastPage callbacks in the
document templat to draw your lines at absolute coordinates, using
canvas.line. Just think of these as part of the page header.

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



More information about the reportlab-users mailing list