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.
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
You are welcome! Glad I could help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.