Header and footer on pdf's TOC page

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

4 answers

This widget could not be displayed.

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?

This widget could not be displayed.

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";
}
}

This widget could not be displayed.

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-center{}
@top-right {}
@bottom-left {}
@bottom-center{}
@bottom-right {}
}

This widget could not be displayed.

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

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