Chris Bowditch wrote:
I think what you are asking for is something like scale-to-fit? There is no such feature in XSL-FO I'm afraid. The only way to achieve this effect would be to change your font size/spacing depending on how much data is in the report. Exactly how to do this will depend on the details of your reports. Some experimentation will be required, and I should warn you that such a solution will not be particularly robust, i.e. report will be unreadable if you try to squeeze 6 pages worth into 1 page.

Chris

To echo what Chris says, the solution you will find will probably not be very desirable. You could also (perhaps) try post-processing with iText, although I'm not certain how it would work.


I was going to suggest one other possibility: calculate dynamically sized region-before/region-body/region-after margins & extents. This would enable you to make the 'HEADER' and/or 'FOOTER' portions 'shrink-to-fit' depending upon the amount of content.

However, if you're only creating one page, you're probably only using region-body anyway...

Good luck! And please let us know what you come up with so it's in the archives!

Web Maestro Clay
FOP Committer (got confirmation yesterday! :-D)

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



Reply via email to