How do I customise PDF exports to do the following please...

A couple of questions please:

I used the Confluence PDF Layout and stylesheet for the PDFs Confluence produce- CAC_PDF_stylesheet.txt, however would still like to make some minor modifications below, and am a beginner html/css coder.

Can someone please help? Thank you.

  1. Currently the page number is on the top right of the page. If I want it to be on the bottom right of the page and say Page x of y where y = total pages, how would I do that?
  2. If I want to centre the 'Table Of Contents' how would I do that?
  3. Some images, but not all are enlarged in the PDF and missing their right hand side in places. It appears to have nothing to do with the pixel size of the images on the screen and is random. Any idea why?

Thank you very much. Appreciate your help smile

1 answer

In PDF stylesheet, change to this for your page numbering


content: "Page " counter(page) " of " counter(pages);

font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;

font-size: 8pt;



Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

852 views 23 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you