[英]How do you add a page break in a PDF with XSL-FO?
How do you add a page break into a document with XSL-FO?如何使用 XSL-FO 在文档中添加分页符? I'm using Apache FOP to create PDFs, if that makes a difference.我正在使用Apache FOP创建 PDF,如果这有区别的话。
You can also do:你也可以这样做:
<fo:block page-break-before="always">
...things you want in a new page...
</fo:block>
FOP 合规性页面说它在更高版本中支持page-break-after
、 page-break-before
和page-break-inside
,另外还部分支持keep-together
、 keep-with-next
、 keep-with-previous
.
谢谢,以下用于在表格后添加分页符:
<fo:table break-after="page">
This worked for me.这对我有用。 But this is Elite Design Gallery syntax.但这是 Elite Design Gallery 语法。
<w:p ><w:r><w:br w:type="page"/></w:r></w:p>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.