Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I start Confluence PDF output pagination on the first content page?

Chuck Martin July 27, 2014

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?

2 answers

0 votes
Chuck Martin August 3, 2014

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.

0 votes
Alejandro Conde Carrillo
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.
July 28, 2014

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events