Theoretically, XSL-FO supports page-height="indefinite" on fo:simple-page-master: http://www.w3.org/TR/xsl11/#page-height
But FOP doesn't support that, yet. In the meantime, you need to take two steps and inspect the area tree XML in the first step as Peter suggested. Or you post-process the area tree XML by changing the actual page height and run the result through the AreaTreeParser: http://xmlgraphics.apache.org/fop/1.0/intermediate.html#usage On 29.11.2010 09:44:41 Craig Ringer wrote: > Hi all > > For the project I'm working on, I'm finding myself with the need to > generate previews of partial (snippet) XSL-FO content for users. > > As part of that, I'm finding that I want to "rubber band" or clip the > output so that excess white space is omitted. As I don't seem to see any > way to make a page template contract to fit the content I suspect I'll > be post-processing the area tree or the final output to crop it around > the content. > > I'm just wondering if there's some obvious approach I might be missing. > I'm not loving the idea of more area tree processing, though it's worked > very well for the vertical space distribution problem I had a while ago. > > -- > System & Network Administrator > POST Newspapers Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org