In "Export to PDF", how can I add the number of pages to a header/footer?

I presently have the following text as part of the PDF Stylesheet field.

{
content: "Page " counter(page);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}

How can I supplement this with text displaying the total number of pages of a PDF output?

1 answer

1 accepted

{  

 content: "Page " counter(page) " of " counter(pages);  
font-family: ConfluenceInstalledFont;  
font-size: 8pt;
}

Thank you Benoit. A very simple addition.

It would be helpful if Atlassian added your text into the following PDF Customisation information page:

https://confluence.atlassian.com/doc/advanced-pdf-export-customizations-198806890.html?_ga=1.62790703.2014661576.1454024630

Are there any other little tricks that can be applied to the PDF Stylesheet to help complete the headers and footers of exported information?

Regards

Rob.

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
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

42 views 0 4
Read article

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