I've followed the advice given by several prior post on this topic but I still get no page numbers in my pdf exports. I tried modifying the stylesheet only and also the stylesheet and pdf layout.
Can someone please guide me? It seems like a simple feature that should work easily. Otherwise I will have to purchase the Scroll PDF Exporter Plugin.
Thank you!
@jnet:
Enter the following code at
"Browse > Space Admin > Look and Feel > PDF Stylesheet > PDF Export Stylesheet"
@page { @bottom-right { content: counter(page) " / " counter(pages); } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this and it still doesn't work. I'm sure I must be doing something wrong. I think I will have to go with the plugin because it seems that without it I can only apply pdf export footers to an entire space. with the plugin, I can define different export templates per page type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Within the space you need to add the CSS entry and then export to PDF. You can make this change at the global level or within a space.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't get headers, footers, or page numbers working either. I am doing exactly this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Erin, descriptions for header and footer can be found in the manual at: https://confluence.atlassian.com/conf54/confluence-user-s-guide/sharing-content/exporting-confluence-pages-and-spaces-to-other-formats/exporting-confluence-pages-and-spaces-to-pdf/customising-exports-to-pdf/advanced-pdf-export-customisations How to set up page numbers is explained above. If you follow this instructions and still have difficulties you should come back here and explain in detail what you did and what happened. Good luck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I was following the instructions (I wanted to do the whole space so I was mainly looking at https://confluence.atlassian.com/conf54/confluence-user-s-guide/sharing-content/exporting-confluence-pages-and-spaces-to-other-formats/exporting-confluence-pages-and-spaces-to-pdf/customising-exports-to-pdf) but it must have been a conflict with some things in the stylesheet. I worked around it by using the @page option in the stylesheet to add page numbers on the bottom right and suppressing numbering on the first page with this: @page :first { @bottom-right { content: " "; } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out the following to do what you need:
https://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF
To add page numbering, you need to combine customised HTML in the PDF Layout with customised CSS in the PDF Stylesheet.
PDF Layout HTML: In the Footer section (or the Header section), use an empty span element with a unique ID, for example pageNum,
to act as a place holder for the page number.
< span id = "pageNum" /> |
PDF Stylesheet CSS: Create the following CSS selector rule for the empty span:
#pageNum:before { content : counter (page); } |
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.