问题描述
我正在从我的 xsl 和 xml 文件生成一个 pdf,其中我需要在第一页的末尾显示一个表格.但是由于该表格上方还有一些表格,将其显示为静态文本会将其下推到第 2 页(或第 3 页,依此类推).所以我想把这张表作为页脚(就在第一页上).
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).
所以我在我的 xsl 文件中将此表定义为页脚.我的表在以下代码下
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">
当我尝试生成 pdf 时,页脚表中的某些行溢出并且在 pdf 上不可见.(我认为这与区域后部分的固定大小有关)
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?
推荐答案
我明白了.对于所有遇到相同问题的人 - 增加 中extent"属性的值.
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"/>
.
然后添加属性space-after" - <fo:region-body space-after="125pt"/>
.
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.
这篇关于如何防止我的页脚在 xsl-fo 中溢出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!