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

0 votes
Accepted answer

{  

 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
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,169 views 4 6
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