Using the latest version of Confluence, I need to create a PDF file for a user guide. Using the Confluence documentation to create running headers and footers:
@page
{
{
margin-top: 1.25in;
margin-left: 1.25in !important;
margin-bottom: 1.25in;
margin-right: 1.5in !important;
}
@top-center
{
content: "[ConfidentialProductName] User Guide";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
@bottom-right
{
content: counter(page);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
@bottom-left
{
content: "Copyright © 2014 [CompanyName], Inc.";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
@bottom-center
{
content: "Proprietary and Confidential";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
}
I have several questions, the most important of which is in the title.
In a print document, page numbers shoudl start at the beginning of the content, not on the actual first page. The title page, the frontmatter page(s), the table of contents page(s), none of these shoudl have page numbers. The first page of content should be page 1. Is there a way, in Confluence's PDF output, to make the first page of content page 1?
Related to that, is there a way to add running headers and footers to all pages, but omit them on the title page only?
As coded above, I get the document title top center on every page and the page number on the bottom right of every page. But I do not get the copyright statement on the bottom left of every page. Anyone know why? Is it having trouble with the copyright HTML entity code?
And on a somewhat related note, any idea whey the page margin definitions are ifnored?
If that would work (and I have not tried it), it would theorecically make the first page of actual content page 1. But wouldn't the PDF output engine still put page numbers on all pages? So the cover page would have "-6", the frontmatter page would have "-5", the table of contents would start on page "-4", etc.
I haven't tested this so I am not 100% sure it will work.
You could try with the calc function of CSS. Something like this:
@bottom-right
{
content: calc(counter(page) - 1);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
If you have 2 pages before the content, just do "- 2" instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.