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 Je...@accessbusinessgroup.com on 2002/07/01 17:28:01 UTC

Stopping the vertical expansion of fo:table-cell

I have searched the attributes applicable to table-cells, and I've searched
the Mailing List Archive, but I can't seem to find an answer to this one...

I've got a 2-page document (essentially a Product Information Sheet) that
gets created by pulling pieces of text from a database, putting them into
an XML document, and doing an XSL translation on the XML.  This creates FO
that gets run through FOP.  Everything is working beautifully, except the
client would like text to resize when it's too large for the available
area, at a default point size.

Currently, what happens is that extra-large text will push the table-cell
out (vertically) to multiple pages, causing the ending table-cells of the
page to flow onto the next page.  I'm working on a method to estimate the
amount of vertical space taken up by a piece of text (I know I can get
actual spacing per character, but I'm just estimating at the moment), but
in case my math fails me at some point, is there any way to "lock down" the
height of a table-cell?

In other words, if I've got a table-cell that holds 6 lines of 12-point
text, and I've got 7 lines to put in it, can FOP retain the original height
of the table-cell, and just suppress the 7th line?

Any help would be greatly appreciated.

-Jeff Mitchell


Re: Stopping the vertical expansion of fo:table-cell

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Jeff_Mitchell@accessbusinessgroup.com wrote:
> is there any way to "lock down" the
> height of a table-cell?

You can set the height of the table row. The row
and the cells therein willhave the exact heigth
specified, so this is probably not what you need.
The spec lets you specify min and max, but this is
not yet implemented in FOP.

J.Pietschmann