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

This widget could not be displayed.


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
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

485 views 6 6
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