Thanks, this is something close to my approach, but what I really wanted
is some way to dynamically resize or scale the whole text area into one
page. Similar to "fit in page" when you print an image.

Thanks,
Gang
-----Original Message-----
From: Luke Shannon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 4:11 PM
To: [email protected]
Subject: Re: Fitting the text content in ONE page

Here is an idea for dynamically changing text size that might work (not
tested):

<fo:flow flow-name="xsl-region-body" font-family="Helvetica"
start-indent="1em" font-size="8pt">
    <xsl:attribute name="font-size">
        <xsl:choose>
            <xsl:when test="string-length('the text you are writting') >
500">
                6pt
            </xsl:when>
            <xsl:otherwise>
                8pt
            </xsl:otherwise>
        </xsl:choose>
    </xsl:attribute>

Hope this helps.

Luke

----- Original Message ----- 
From: "Gang Li" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 13, 2005 4:42 PM
Subject: Fitting the text content in ONE page


Hi,

I have a caveat page that is filled with dynamically generated text
contents. I am wondering is there any way that I can keep them in only
ONE page no matter how many of them? What I can think of is to reduce
the font-size so that it can fit into 1 page. But can I dynamically
change the font-size? Or is there any other way that I can reach this
goal?

Thanks a lot,
Gang

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to