how to insert pagebreak into confluence wiki page

Benedito Silveira June 28, 2018

I exported confluence wiki page into pdf and word format however the desired contents are not  in the particular page. How to access the pagebreak feature in confluence wiki? 

2 answers

2 votes
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 28, 2018

Hi @Benedito Silveira,

Go to Confluence Admin -> User Macros -> Create a user macro

  • Give a macro name (ex: pagebreak), category, etc.
  • Select "No Macro Body"
  • Add the line below to "Template"
## @noparams
<div style="page-break-before:always;"></div>

Than, user this macro in page content where you want add a page break for export.

Solution 2:

  • Add a "Div" macro 
  • Paste page-break-after:always; to the style section.

Alternatively, you can do more customization for pdf export: https://confluence.atlassian.com/confcloud/customize-exports-to-pdf-724764825.html?_ga=2.183662246.1411781722.1530248585-879743838.1529914348

Tansu Akdeniz

Mel DuPont March 29, 2022

Please correct Solution 1 to include a single space before the closing div tag, like so:

<div style="page-break-before:always;"> </div>
Like Pres likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events