Insert page breaks in a page export

As an OnDemand user, how do I insert a page break when that specific page is exported to PDF so that I can keep my graphics and content or tables and content together?

I've modified the space pdf to page break after certain headers; but, my issue is on individual pages where I need to control the page break to keep the content together.

Advice is very much appreciated!

2 answers

1 accepted

I found this trick for us OnDemand users that cannot use the html macro or create user macros do this it (it would be very beneficial if Atlassian provided at least these common macros that they even indicate as solutions in their own documentation).

In the PDF Stylesheet, I added:



page-break-before: always;


I used h6 and h7 since I don't use these headings in our doc for anything.

Where I want a page break, I insert an h6 heading and then make it white or the color of the background.

In the TOCs on the page, I make sure they don't display past a level 5

This will then create page breaks where I need. The downside is that there is always an extra row.

So, it would be very helpful if Atlassian provided a page break macro out of the box since this seems to be a comment request in the many forums/blogs that I read on the topic.

How do you delete a page break in the PDF export after the JIRA issues macro it inserts an extra blank page as the issues go to the end of the page.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

942 views 23 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