xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hennebert <vhenneb...@gmail.com>
Subject Re: table cell duplication
Date Wed, 04 Feb 2009 10:04:16 GMT
Hi Georg,

Georg Datterl a écrit :
> Hi Jeremias,
> Yes, I include a picture of my table (created with iText, except for the red stuff).
 The left colum contains numbers (Block A), photos (Block B), drawings (Block C) and finally
another number (Block D). The right column contains headlines, text, tables, various stuff.
As you can see on the second page, last table, Block A aligns with Block E, Block D is on
the bottom line of the table, not necessarily aligned to anything in Block E.

Please have a look at the FO file attached. That’s the most accurate
approach I could find. That requires a bit of pre-processing, and
knowing the heights of the images, but since your content seems to be
even you might be happy with it. Plus it’s implementable straight away,
without any modification to FOP.

I can think of two FO constructs to make content repeat on pages:
markers or table headers/footers. Markers are not really an option here
(even supposing that table markers are implemented), since the repeated
content should be mixed with the table body, and have an influence on
its height.
Remains table header. The idea is to put the drawing in a header and
fill the body with blank content such that the height of the table
matches the height of content E. In the sample FO I used blocks
containing non-breaking spaces. The whole challenge is to determine how
many such blocks should be put. In your case you seem to always have the
same content: 2 title lines, a few list items, then tables with
a certain amount of entries. If the title content and list items are
short enough to never be broken over lines, then you can easily estimate
the height of content E, substract the heights of A, B and C, which
gives you the amount of blank blocks to put.
However, I can’t think of any way to extend the borders to the final
horizontal line.
Block D is relatively easy to achieve: just put a block with negative
margin after the whole table.

> The text "PE universeel fittingen" is in the header area and can be ignored.
> Maybe my table structure is not that smart, but it seemed the easiest way to keep block
D on the bottom. More or less... If you know a way to elongate the table columns down to the
table baseline regardless of empty rows, that would be most welcome, too.
> Regards,
> Georg Datterl


View raw message