最后一页底部流体中的最后一个块 [英] Last block in flow body at the bottom on last page
问题描述
如何让 fo:flow
正文中的最后一个 fo:block
与最后一页的底部对齐?
How can I have the last fo:block
in fo:flow
body aligned at the bottom of the last page?
我不是说每页的页脚部分,没关系,但我想在最后一页的底部有流体中的最后一个块.
I do not mean footer section on each page, it is ok, but I want to have the last block in flow body at the bottom on last page.
流体的内容多种多样,不知道最后这个块的高度是多少.
The content of flow body is diverse and I do not know, what will be the height of this last block section.
有可能以某种方式做吗?
Is it possible to do somehow?
推荐答案
如果您使用 AH Formatter,您可以将最后一个块浮动到页面底部.
If you are using AH Formatter, you could make the last block float to the bottom of the page.
您可以将最后一个块放在 fo:block-container
中,并将 fo:block-container
绝对定位在页面底部.
You may be able to put the last block inside an fo:block-container
and absolutely position the fo:block-container
at the bottom of the page.
您可以将最后一个块放在只出现在最后一页的页脚中:
You can put the last block in a footer that appears only on the last page:
- 为最后一页制作一个单独的
fo:simple-page-master
- 在该页面上使用具有不同
master-name
值的fo:region-after
- 在
fo:region-after
上指定display-align="after"
以确保其内容出现在底部 - 在您的
fo:page-sequence-master
中,使用包含fo:conditional-page- 的
在具有fo:repeatable-page-master-alternatives
master-referencepage-position="last"
并为最后一页选择页面母版的替代品中的早期 - 在
fo:page-sequence
中,使用与匹配的
master-reference
创建一个fo:static-content
最后一页的fo:simple-page-master
的xsl:region-after
的flow-name - 将最后一个块内容放入该
fo:static-content
- Make a separate
fo:simple-page-master
just for the last page - Use an
fo:region-after
with a differencemaster-name
value on that page - Specify
display-align="after"
on thefo:region-after
to make sure that its content appears at the bottom - In your
fo:page-sequence-master
, use anfo:repeatable-page-master-alternatives
that includes anfo:conditional-page-master-reference
early in the alternatives that haspage-position="last"
and that selects your page master for the last page - In the
fo:page-sequence
, make anfo:static-content
with amaster-reference
that matches theflow-name
of thexsl:region-after
of thefo:simple-page-master
for the last page - Put the last block content in that
fo:static-content
这篇关于最后一页底部流体中的最后一个块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!