简体   繁体   中英

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? 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-afterpage-break-beforepage-break-inside ,另外还部分支持keep-togetherkeep-with-nextkeep-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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM