Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Robert Lake February 15, 2017

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
Answer accepted
BenoitP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2017

{  

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

Robert Lake February 20, 2017

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
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events