问题
I'm generating a pdf from my xsl and xml files wherein I need to display a table at the end of the first page. But since there are some tables above this table also, displaying it as static text pushes it down to the 2nd page (or 3rd and so on). So i thought to make this table as a footer (just on the first page).
So I have this table defined as a footer in my xsl file. My table is under the following code
<fo:static-content flow-name="xsl-region-after" font-size="10pt">
When I try to generate the pdf, some of my rows from the footer table are getting overflowed and are not visible on the pdf. (I think this has to do with the fixed size of region-after section)
How can I fix it so that I can get all of my text in the footer?
回答1:
I got it. For all those who are having the same problems - increase the value of the "extent" attribute in <fo:region-after extent="4cm"/>
.
Then add the attribute "space-after" - <fo:region-body space-after="125pt"/>
.
It solves both the problems - footer overflow and region-body and region-after overlap.
来源:https://stackoverflow.com/questions/11670374/how-can-i-prevent-my-footer-from-getting-overflowed-in-xsl-fo