You might be able to achieve an ugly form of this by writing your text out as SVG and scaling the SVG window - but I've had a few problems with SVG sizing in FOP and haven't had time to sort them out yet - so don't know if this would work at all.

It's not the sort of thing that XSL-FO can provide as you don't know until you've finished how much space you need - so it requires feedback / recursion which is un-XSL-FO-ish.

When I've had the need for this sort of thing I usually write a Postscript file and post-process it (with a sizing algorithm or with a utility that gives me a bounding box) , then turn the result into PDF (or a graphic to be embedded).

[EMAIL PROTECTED] wrote:
A simple question :
Given a text WHICH LENGTH IS UNKNOWN, embbeded in a xml file, is there any way with FOP to ensure that THE WHOLE TEXT WILL FIT ON A SINGLE PDF PAGE ? (i don't care about the font size)
 
Thank you for your answers.
 
 


Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)

Reply via email to