Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to insert pagebreak into confluence wiki page

Benedito Silveira
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champion
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 3rdjkadjk likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events