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.
When creating visually pleasing PDFs, it is essential to have control over exactly where the content of one page ends and the content of another begins. To insert a page break into your document, simply place your cursor where you want the page to break and click the Page Break button. Insert Page Breaks With Code
By default, Confluence pages are exported without page breaks, so that shorter pages will appear on the same PDF page. To make each Confluence page appear on a separate page in the PDF file, add the following rule in the PDF Stylesheet: As for being able to include a page break on-demand, there's a feature request below for this:
Use page breaks to customise what information goes on what page. Export your report as a PDF document to see how it looks before sharing it. Use page breaks to keep related information on one page, or to split information into separate pages. For example, add a page break if you’d like a schedule to appear on its own page.
I used the Organize Pages tool to break the document into six separate pages. Organize Pages allows you to insert a blank page or insert from the clipboard. 1) Open the unpaginated document in Acrobat. 4) Right-click where you want the page to go. Or hover over the last page, select the three dots.
You can also do:
<fo:block page-break-before="always"> ...things you want in a new page... </fo:block>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With