Re: Cropping output to content

2010-11-30 Thread Jeremias Maerki
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

Cropping output to content

2010-11-29 Thread Craig Ringer
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

Re: Cropping output to content

2010-11-29 Thread Peter Hancock
Hi Craig, I think that post processing the area tree will be the only solution - FOP can only fit content to page view-ports and not the reverse. To make life easy you could use id's to demarcate the section you want to preview, making the extraction easier. Ideally you should process a whole