How can I prevent my footer from getting overflowed in xsl-fo?

别说谁变了你拦得住时间么 提交于 2019-12-10 10:20:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!