Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,350
Community Members
 
Community Events
165
Community Groups

how to insert pagebreak into confluence wiki page

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 Jun 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

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

<div style="page-break-before:always;"> </div>

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

1,018 views 17 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you