最后一页底部流体中的最后一个块 [英] Last block in flow body at the bottom on last page

查看:30
本文介绍了最后一页底部流体中的最后一个块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让 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-alternativesmaster-reference 在具有 page-position="last" 并为最后一页选择页面母版的替代品中的早期
  • fo:page-sequence 中,使用与 匹配的 master-reference 创建一个 fo:static-content最后一页的fo:simple-page-masterxsl: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 difference master-name value on that page
  • Specify display-align="after" on the fo:region-after to make sure that its content appears at the bottom
  • In your fo:page-sequence-master, use an fo:repeatable-page-master-alternatives that includes an fo:conditional-page-master-reference early in the alternatives that has page-position="last" and that selects your page master for the last page
  • In the fo:page-sequence, make an fo:static-content with a master-reference that matches the flow-name of the xsl:region-after of the fo:simple-page-master for the last page
  • Put the last block content in that fo:static-content

这篇关于最后一页底部流体中的最后一个块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆