Insert page breaks in a page export

K Kelly
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 11, 2012

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

2 votes
Answer accepted
K Kelly
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 13, 2012

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.


0 votes
kimberly anderson
Contributor
January 30, 2014

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
TAGS
AUG Leaders

Atlassian Community Events