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

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

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.

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

374 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you