This is something that's available using element(header) in combination with the PDF Space export header section in the PDF Layout when not using the External Process Pool, but it doesn't seem available when using the External Process Pool in Confluence 7.0.1.
Not using the process pool, we're able to target the Table of Contents specifically using the following CSS:
div.toc {
page:toc ;
}
@page toc
{
@top-left
{
content: element(header);
}
@bottom-left
{
content: element(footer);
}
}
Using the external process pool, we're still able to target the ToC specifically and inject other CSS, but the content: element(header) and content: element(footer) functions don't seem to work. It works for the remainder of the pages, though, so it seems like the PDF Layout configuration is inactive for the table of contents generation, which, considering that the External Process Pool generates the table of contents separately from the pages, somewhat makes sense could occur, but not that it should occur.