Export to PDF - page counter starting from zero

Hi Everyone, 

How can I make a page counter starting from zero?

Is this possible?


Here's my PDF stylesheet at the moment:


    font-size: 10pt;
    line-height: 1.3;
    color: #323232;
    font-weight: normal;
    counter-reset: page - 1;
    size: 148mm 210mm;
    margin-top: 5mm;
    margin-bottom: 10mm;
    margin-left: 5mm;
    margin-right: 5mm;
    counter-reset: page - 1;

        counter-reset: page - 1;
        content: "Page " counter(page);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 8pt;

But it doesn't work. Any idea? Thanks in advance

1 answer


a normal page counter starting from 1 can be implemented like this:

@page { 
@bottom-right {  
content: "Page " counter(page);

Having the page counter start from 0 is not possible with confluence.

Typical ideas that you might think of and try out like "counter(page-1)" or "counter-reset: page 0" do not work.

The latter would work if you created your own customized page counter but this is some extra work.

Can we create a counter-reset: page 2; 

Suggest an answer

Log in or Sign up to answer
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 Take your e...

1,040 views 2 13
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