[reportlab-users] Finding if a flowable is at the top of a page.
Roberto Alsina
ralsina at netmanagers.com.ar
Tue May 4 12:31:19 EDT 2010
On Tuesday 04 May 2010 09:31:02 Roberto Alsina wrote:
> On Tuesday 04 May 2010 08:09:24 Andy Robinson wrote:
> > On 4 May 2010 12:01, Roberto Alsina <ralsina at netmanagers.com.ar> wrote:
> > > Really, I am very close to something that works for at least some
> > > cases, if only I could tell what flowable starts a page :-)
> >
> > I clearly misunderstood how far you had got.
> >
> > Do you have or could you pull out any code to play with, preferably
> > without us having to learn our way round all of rst2pdf? If we can
> > express it as a little test script (e.g. test_platypus_footnotes.py)
> > with any extra classes in it, I don't mind making my eyeballs bleed a
> > bit too...
>
> I'll try to hack it today.
And here's a failing case:
http://pastebin.com/wrXiw5ky
The "long" paragraph gets split, but its second piece, at the to pof the
second page, doesn't have "_atTop" set, so the first footnote is not used in
the first page, and moves to the bottom of the second.
More information about the reportlab-users
mailing list