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

1 vote
Answer 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:

h6,h7

{

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
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,241 views 2 13
Read article

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