PDF Export won't add page numbers

ABN AMRO Clearing Chicago August 20, 2012

I am trying to add page numbers to wiki pages to show on a PDF export by adding

#pageNum:before
{
content: counter(page);
}

to the Global PDF Stylesheet and adding <span id="pageNum"/>
to the PDF Space Export Footer.

I used the directions found here: https://confluence.atlassian.com/display/CONF42/Providing+PDF+Versions+of+your+Technical+Documentation#ProvidingPDFVersionsofyourTechnicalDocumentation-AddingHeadersandFooters

However no page numbers appear in the exported PDF. (Confluence 4.2.4)

Please help! Thank you in advance.

1 answer

1 accepted

5 votes
Answer accepted
Thomas Wendel
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.
August 20, 2012

Try following the instructions from this page, they worked for me: https://confluence.atlassian.com/display/DOC/Advanced+PDF+Export+Customisations

Just add the following code to either to the global or the space PDF stylesheet:

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

You don't need to add any HTML code anywhere.

Please let us know if it worked.

Cheers,
Thomas

Thomas Wendel
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.
August 20, 2012

You are welcome! Glad I could help.

ABN AMRO Clearing Chicago August 20, 2012

This solution worked! Thank you!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events