How to add page number to TOC

Hi all, my name is Thomas and I'm responsible in my company for the knowledge base documentation.

I would like to change the formatting of the tables of content (TOC) because with the macro it looks rather, sorry for the wordy useless.

There are no page numbers and the text is very small after a PDF export.

My idea was to override the TOC with some CSS in the Global PDF Stylesheet to look more like the TOC below. Which is a standard TOC I don't understand why I'm not able to do something like this with the macro.


FYI, we are using the cloud version.

Kind regards,


1 answer

0 vote

The reason you can't do it with the macro is that there are no page numbers on a web-page.  You can only work out what page numbers are going to occur when you print it to a specific format where the output sizing is well known.

However, yes, the output to pdf has a known weakness in that when you use it, it still doesn't make the ToC aware of the output pages, so it won't do it.

A lot of server users install things like Scroll PDF or Scroll Office, which fix it on export, but I'm afraid I think you are stuck on Cloud.

Okay, so there isn't even a solution with the stylesheet? That Ican override the TOC?

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

278 views 6 15
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot