How to add header and footer to TOC page in PDF?
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; }
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 {}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"; } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.