How do you add a page break in a PDF with XSL-FO?
57,804
Solution 1
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
.
Solution 2
You can also do:
<fo:block page-break-before="always">
...things you want in a new page...
</fo:block>
Solution 3
Thanks, the following worked for adding a page break after a table:
<fo:table break-after="page">
Author by
Philip Morton
Updated on December 15, 2020Comments
-
Philip Morton over 3 years
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.