How do you configure page breaks in PDF exports?

Anatoly Klebanov March 17, 2016

I have reviewed articles, such as this one (https://answers.atlassian.com/questions/32989210), 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

0 votes
Answer accepted
Milo Test
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.
March 17, 2016

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.

.noprint  
{  
display: inline-block ;  
}
Anatoly Klebanov March 18, 2016

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

Atlassian Community Events