我怎样才能让fo:block
身体的最后一个fo:flow
在最后一页的底部对齐?
我不是指每页上的页脚部分,没关系,但我想在最后一页底部的流体中有最后一个块。
流体的内容是多种多样的,我不知道,最后一个块部分的高度是多少。
有可能以某种方式吗?
如果您使用的是AH Formatter,则可以将最后一个块浮动到页面底部。
您可以将最后一个块放在fo:block-container
中,并将fo:block-container
绝对放在页面底部。
您可以将最后一个块放在仅显示在最后一页的页脚中:
fo:simple-page-master
fo:region-after
值与master-name
值不同display-align="after"
上指定fo:region-after
以确保其内容显示在底部fo:page-sequence-master
中,使用包含fo:repeatable-page-master-alternatives
的fo:conditional-page-master-reference
,在page-position="last"
的替代品的早期,并选择你的页面主页为最后一页fo:page-sequence
,制作一个fo:static-content
与master-reference
匹配flow-name
的xsl:region-after
的fo:simple-page-master
为最后一页fo:static-content
中一个应该有效的简单技巧(我用FOP 2.3成功测试了它):
<fo:block keep-with-previous.within-page="always"
space-before.minimum="1cm"
space-before.optimum="30cm"
space-before.maximum="30cm">
Text at the end of the last page
</fo:block>