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:

 

body,p,li,td,table,tr,.bodytext,.stepfield 
{
    font-size: 10pt;
    line-height: 1.3;
    color: #323232;
    font-weight: normal;
    counter-reset: page - 1;
}
@page{
    size: 148mm 210mm;
    margin-top: 5mm;
    margin-bottom: 10mm;
    margin-left: 5mm;
    margin-right: 5mm;
    counter-reset: page - 1;

    @bottom-right
    {
        counter-reset: page - 1;
        content: "Page " counter(page);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 8pt;
        text-align:right;
    }

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

1 answer

Hi,

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
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 Friday 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...

277 views 11 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