Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I insert page breaks for PDF Export with the "new user experience"?

Currently, I'm inserting page breaks using the div macro, but the div macro will be going away with the new user experience.   What will replace the div macro?   I just need something that allows me to add page breaks when exporting to PDF. 

2 answers

0 votes

Hello Michelle,

Thank you for contacting us about this. I'm not really sure which macro you're referring to, as there's no Div Macro included in Confluence. Could you show me which macro you are currently using for this? 

To include page breaks between each new page, you can use the workaround below:

By default, Confluence pages are exported without page breaks, so that shorter pages will appear on the same PDF page.

To make each Confluence page appear on a separate page in the PDF file, add the following rule in the PDF Stylesheet:

page-break-before: always;

As for being able to include a page break on-demand, there's a feature request below for this: 

  • CONFCLOUD-36146 Provide ability for OnDemand users to insert page breaks to have a clean pdf export

Please vote on it to show you're interested, and you'll be included on any future updates.

Let me know if you have any questions about this.



Hi Shannon,

The Div Macro can be found in the list of Macros under the "Formatting" category (if you're in the old/current editor).  When I add "page-break-after;always;" to the Styles field, I get a nice little macro that I can copy and paste wherever I need a page break in my document (see below).  When trying out the new experience, I noticed that the Div Macro is gone.  I can't even copy and paste an old macro into the new experience.  I'm hoping that something will be added to allow me to add page breaks to a document in a nice, easy way.   

Warmest Regards,


Div Macro (3).png


Apologies; I see now which macros you're referring to.  I've found further information on that Div macro. Essentially, that macro and others like it are part of the Adaptavist Content Formatting Macros for Confluence. Back in 2017, Adaptavist started charging for the add-on, and we started included a few of them to be bundled with Cloud.

At this time, they are being deprecated as part of the new editor, as mentioned here: We're cleaning up the macro browser.

Under Other macros being deprecated:

The other macros listed here do get used, but their main use case is to make content look better and more readable, which is something we're now building into the editing experience as a default. As we're moving closer towards a WYSIWYG (what you see is what you get) editor, we also want to remove macros like this as they have the potential to break pages.

    • Rollover
    • Div
    • Span
    • Style
    • JUnit Report

We are tracking feedback on the removal on the threads below:

Please let me know if you have any further questions about this.



Thanks, Shannon!   I'll add my comment / request to the threads that you have mentioned.  I appreciate your help!

Like Shannon Spaniol likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

494 views 24 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you