It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 (you can also ...

2,483 views 14 20
Read article

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