Header and footer on pdf's TOC page

How to add header and footer to TOC page in PDF?

4 answers

Hi Igor,

headers and footers can be included directly via
Space Admin > Look and Feel > PDF Layout + Edit "PDF Space Export Header" or "PDF Space Export Footer"

or as CSS via the Space Admin > Look and Feel > PDF Stylesheet

But it seems these headers and footers only appear on "normal" pages but not on the toc page.

If you want the same headers and footers on the toc page you can edit the "PDF Space Export Title Page" and include some html that "rebuilds" these headers.

Hey, Steffen. Thank you for your answer.

As you wrote, these headers and footers appear only on normal pages, but not on TOC. Any suggestion how to add header and footer to TOC page with HTML?

Just a quick answer:

I had another look at it and discovered that it is more tricky than I thought. But what about making your headers/footers in the Space Admin > Look and Feel > PDF Stylesheet.

Just use some code like the following and refine it with whatever css formatting you like:

@page {
@top-center { 
content: "this is a header"
@bottom-center {
content: "this is a footer";

For the title page and TOC pages, use the "@ page title", then set the @top or @bottom settings.

@page title
/* Any page title-specific properties for title and toc pages.*/
/* Override default settings */
margin: .5in;
padding: 0em;
@top-left {content: "Header"}
@top-right {}
@bottom-left {}
@bottom-right {}

I used the following in the PDF Stylesheet to add a title to the Contents page.

div.toc:before {  
   font-size: 26px;  
   content: "Contents";  
   display: block;  
   margin-bottom: 13px;  

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
Published 14 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

99 views 2 4
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