How do you configure page breaks in PDF exports?

I have reviewed articles, such as this one (, but still cannot figure out how to make the page break after certain headings or elements (like another macro). Is it possible to do this by just editing the stylesheet without inserting anything on the actual page? Thank you.

1 answer

1 accepted

Far as I can tell, you have to have a macro with a Class setting so you can refer to it in the PDF Stylesheet. The div and span macros are generally used for this.

Set the Class to noprint, then refer to it in the PDF Stylesheet.

display: inline-block ;  

Thank you. I used a combination of your tip and another I found. I added several divblock macros, and then defined a class in each (called pdfprint). Then, I added the following text to the stylesheet: .pdfprint{ page-break-before: always; } 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,894 views 27 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you