确定 xsl-fo 中的最后一页位置 [英] Determining Last page position in xsl-fo

查看:24
本文介绍了确定 xsl-fo 中的最后一页位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们能否以某种方式确定 XSL-FO 中最后一页的位置?如果我只想将页脚放在最后一页,那怎么做?由于输入数据变化并且不是静态的.因此,根据数据可以出现任意数量的页面.

Can we somehow determine the position of the last-page in XSL-FO? If I want to place my footer only on the last page, then how it could be done? As Input data varies and is not static. So any number of pages can come depending on the data.

推荐答案

希望现在还为时不晚.但无论如何,对于所有感兴趣的人:

Hope, it's not too late. But anyway, for all interested people:

  1. 创建页面母版

  1. Create a page master

<fo:simple-page-master master-name="my-last-page">...</fo:simple-page-master>

并将您的页脚作为区域之后"放入该母版中.

and put your footer as a "region-after" into that master.

将此添加到您的可重复页面主备选项

Add this to your repeatable-page-master-alternatives

这篇关于确定 xsl-fo 中的最后一页位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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