Header and footer on pdf's TOC page

Igor Gubaidulin June 27, 2012

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

4 answers

1 vote
Ian Godfrey May 22, 2016

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;  
}
0 votes
Bruce Michelsen July 24, 2012

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 {}
}

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2012

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

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 1, 2012

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.

Igor Gubaidulin July 2, 2012

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events