7237Re: How much space FO code would take
- Aug 18, 2006not sure what u want to do when its going to go over 1 line... but u
can check for that if you use a monospace font-family
(font-family="monospace")on that fo:block since all characters are the
so you make the pdf, count up how many chars (including spaces etc)
fit in one line.
then set up a condition in your xsl, pretend only 200 chars fit in 1 line.
<xsl:variable name="theNodesTextValue" select="thisNode/text()"/>
<xsl:when test="string-length($theNodesTextValue) > $maxLength">
//make the font size on this row smaller? or only output 1st 200
letters? not sure what consistancy you want.
//write out the row
--- In XSL-FO@yahoogroups.com, "Fournier,Danny [NCR]"
> Is there a way to determine how much space (in mm, cm, ect) a snippet of
> FO would take? I need to page a table in a specific order and rows
> taking more than one line is making the output out of synch.
> Any insights would be appreciated.
> [Non-text portions of this message have been removed]
- << Previous post in topic