You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Will Gilbert <gi...@informagen.com> on 2003/12/01 20:06:05 UTC

table-cell breaking across pages

Was wonder how to keep the contents of a table-cell from breaking 
across pages when the table cell contains several paragraphs blocks.

I played with many combinations of "keep-with...", "widow/orphans" that 
my head is spinning. The FOP examples are oriented towards cell with 
simple contents.

Any help or FAQ link gladly appreciated.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: table-cell breaking across pages

Posted by Will Gilbert <gi...@informagen.com>.
>> Was wonder how to keep the contents of a table-cell from breaking
>> across pages when the table cell contains several paragraphs blocks.
>
> Try this:
>
>             <fo:table-row keep-together.within-column="always">
>             ...
>

This did the trick.   Viel Dank.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: table-cell breaking across pages

Posted by Roland Schroth <rs...@albit.de>.
> Was wonder how to keep the contents of a table-cell from breaking
> across pages when the table cell contains several paragraphs blocks.

Try this:

            <fo:table-row keep-together.within-column="always">
            ...

This will prevent the content of this row from getting broken apart at page
breaks.
If it does not fit onto the rest of the page, the complete row content will
start on the next page.
Of course, if the content is too large to fit onto a single page it will
then be broken nevertheless.

As the documentation says, this only works in table-row elements at the
moment:
http://xml.apache.org/fop/compliance.html#fo-property-keep-together

If (for some reason) you want to apply this only to a single cell instead of
a complete row,
use a nested table here with this setting aplied to it.

Roland



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: table-cell breaking across pages

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Will Gilbert wrote:
> I played with many combinations of "keep-with...", "widow/orphans" that 

Widows/orphans are not implemented.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: table-cell breaking across pages

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Will Gilbert [mailto:gilbert@informagen.com]
>
> Was wonder how to keep the contents of a table-cell from breaking
> across pages when the table cell contains several paragraphs blocks.
>
> I played with many combinations of "keep-with...", "widow/orphans" that
> my head is spinning. The FOP examples are oriented towards cell with
> simple contents.
>

Ouch... _keeps_. (they're one of the main reasons for the redesign effort)

Currently, they *only* work for table-rows (-- so the spinning should go
away soon ;) )

In short, the only thing you can do in this case is to put
keep-with-next="always" only on those rows you suspect are going to be
broken.

I guess you already read this one...
http://xml.apache.org/fop/faq.html#keep-with


Hope this helps!

Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org