[reportlab-users] Page headings in platypus

Robert Young Robert at AbilitySys.com
Thu Nov 5 11:16:10 EST 2009



Yes, when I did the change for that container it worked as expected,
probably better than what I described as desired below, since there
would always be the edge condition that the new "group" would start on a
page, making me take unusual steps to avoid the "header" followed
immediately by "header continued" on the same page.

My problem with PTO was that the example gives was a single paragraph,
which means I lost the hanging indents and line breaks in my text. I'll
have to experiment with using a PTO container that has multiple
paragraphs.

- Robert

-----Original Message-----
From: reportlab-users-bounces at lists2.reportlab.com
[mailto:reportlab-users-bounces at lists2.reportlab.com] On Behalf Of Paul
Barrass
Sent: Thursday, November 05, 2009 6:46 AM
To: For users of Reportlab open source software
Subject: Re: [reportlab-users] Page headings in platypus

Robert Young wrote:

> Each detail line paragraph is only one or two lines, so it is rare

that

> a paragraph will break across a page. I was hoping that each "DocIf"

> would put the appropriate continuation header when any of the

following

> detail lines is at the start of a page. Or is there some sort of

> container between "paragraph" and "story" that would be better to use?

>

>

I think the PTOContainer Robin mentioned earlier is the best tool for
that particular task - the DocIfs were to answer your follow-up question

regarding conditional headers - I guess they could work well with
CondPageBreaks. If you wanted to use DocIfs for '...continued' headers,

I think you'd need to insert one everywhere a page break could happen -
though this wouldn't work unless you forced Paragraphs not to be split
over pages. I've never used the conditional elements though, so there
could be subtleties I've not noticed.

Paul Barrass.
_______________________________________________
reportlab-users mailing list
reportlab-users at lists2.reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users


More information about the reportlab-users mailing list