How do you add a page break into a document with XSL-FO? I'm using Apache FOP to create PDFs, if that makes a difference.
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.
<w:p ><w:r><w:br w:type="page"/></w:r></w:p>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.