Using Confluence cloud with a space PDF export. I'm editing the Global PDF export settings under Title, Header, Footer and PDF stylesheet. I've deleted all space and global pdf export settings to make sure I'm starting with a clean slate and only adding table of contents CSS properties to try to get it working.
What I want to do seems so simple I'm almost embarrassed to ask, however I've wasted too many hours on it now. I want to print "Contents" at the top of the table of contents. That's it. Everything I try doesn't work. The export consistently prints the title "Contents" on a separate page then the TOC on a new page. Can anyone tell me how to do this?
One example of the crazy number of things I've tried. I can only get "Contents" to show by setting the class in the Title section. Why doesn't the title show up?
Global PDF export
Title:
<div style="text-align: center; padding-top: 100px; page-break-after: always;"> <img src="data:image/jpeg;base64,/9j/4AAQSkZJ...oAKKKKACiiigAooooA//9k=" style="width: 250px; height: auto; margin-bottom: 20px;" />
</div>
<div class="tocTitle">Contents
</div>
PDF stylesheet:
div.toc {
page-break-after: avoid;
counter-reset: chapter 0;
}
.tocTitle {
font-size: 18px;
font-weight: bold;
margin: 60px 0 4px 0;
text-align: center;
page-break-before: avoid;
page-break-inside: avoid;
page-break-after: avoid;
border: 1px solid green;
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.