How to have a page break if I can't create a user macro to do?

Linda Chong June 21, 2018

During PDF space export.

1 answer

0 votes
Suren Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 21, 2018

Hi Linda.

One of the users found a way to add the page break. He mentions it on the below feature request:

 

Hi,

in addition to Simon Poissant post on May 3rd 2016 and until Atlassian provides this macro, you could add this in the Space Tools -> Look and Feel -> PDF Stylesheet
{code:java}
div.pagebreak  { page-break-after: always;  }
{code}
Then you can add page breaks easily by adding a "div" macro and add "pagebreak" in the class field when editing the page and where you want. I'm using this in all our documentation spaces.

 

 

Hope it helps.

 

Cheers
Suren Raj

Linda Chong June 21, 2018

Hi again,

Thanks for your reply. I tried the suggestion but it does not work. Are able to advise whether my below steps are correctly done.

Steps:

1. Within a page in a Space, I created a 'Div' macro with Class = "pagebreak". 

2. I insert this object into the page.

3. I go to the Space Settings -> Look and Feel -> PDF Stylesheet, I add in the below:

@Bonifacp
{

@top-center
{
content: "IMAGUS LEADING THE WAY IN COMPUTER VISION AND BIOMETRIC SOLUTIONS."; /* This is the content that will appear in the header */
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt; font-weight: bold;
}
@bottom-center
{
content: "Page " counter(page); /* This is the content that will appear in the footer */
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}

/* Any other page-specific rules */
}

margin-top: .75in;
margin-bottom: .75in;
margin-left: .75in;
margin-right: .75in;

div.pagebreak { page-break-after: always; }

4.  Then, I click on the Export space to PDF.

5.  The page break never happened. 

Please help.  I am frustrated!

 

Regards,

Linda

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events