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 to customize page breaks and other things in PDF export


I went to "Space Settings">"Look and Feel" > "PDF Stylesheet" and tried to change things like changing when the page breaks occur and adding page numbers when I export to a PDF. I used the CSS:

h1, h2, h3 {
page-break-before: always; }
content: "Page " counter(page) " of " counter(pages);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;

Nothing I do in the PDF Stylesheet is showing up when I export a Page to a PDF. Can you tell me what I'm doing wrong and how I can adjust the PDFs of the different pages I created?

2 answers

Hi Antonia,

Did you have further formatting requirements that you needed to apply to your exported content from Confluence? If so, our app, Scroll PDF Exporter might be able to help as you will be able to define the styling for your exported content. This includes being able to define where page breaks occur in the export either through the use of our Scroll Pagebreak macro directly in Confluence, or through styles defined in an export template.

Cheers, Thomas (K15t)

0 votes

Hello Antonia,

Thank you for contacting us about this. The reason your customization is not applying is because PDF customization only applies to space exports (not single page exports). This is per our documentation Customize Exports to PDF.

You can try the following workaround from Export Content to Word, PDF, HTML and XML:

  1. Choose the cog icon (), then open the Content tools tab
  2. Click Export
  3. Select PDF, then hit Next.
  4. Choose Custom Export, and select the page(s) you wish to export. 
  5. Click Export.

This will allow you to export a single page using the customizations you made for the space.

Can you try that and let me know if you have any trouble?



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...

415 views 23 8
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