How do you add a page break in a PDF with XSL-FO?

前端 未结 4 505
挽巷
挽巷 2020-12-30 23:36

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.

相关标签:
4条回答
  • 2020-12-31 00:11

    Thanks, the following worked for adding a page break after a table:

    <fo:table break-after="page">
    
    0 讨论(0)
  • 2020-12-31 00:17

    You can also do:

    <fo:block page-break-before="always">
      ...things you want in a new page...
    </fo:block>
    
    0 讨论(0)
  • This worked for me. But this is Elite Design Gallery syntax.

    <w:p ><w:r><w:br w:type="page"/></w:r></w:p>
    
    0 讨论(0)
  • 2020-12-31 00:24

    The FOP compliance page says that it supports page-break-after, page-break-before, and page-break-inside in the later versions, plus partial support for keep-together, keep-with-next, keep-with-previous.

    0 讨论(0)
提交回复
热议问题