Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Table of contents header showing on separate page from Table of Contents


I've been digging around trying to find an answer to my question and have found a few posts that appear to ask similar questions, but the answers have not solved my issue.


I'm looking to use the space exporter to export a selection of pages as a pdf. I want to include a title page and the auto generated Table of Contents (TOC). I've successfully got the title page to appear with an image and desired text via the "Customize Exports to PDF" help document found here:


Specifically I used the code here to accomplish this:

<div class="fsTitlePage">  
 <img src="/download/attachments/169118009/atlassian_logo.png" />  
<div class="fsDocTitle">Documentation for Confluence</div>  
<div class="tocTitle">Contents</div>


My resultant code for the PDF layout looks like:

<div class="fsTitlePage"> 
<img src="/download/attachments/80184421/GLASS_Logo_textOnly_gradMod_FINAL.png?api=v2"class ="titleImage" />
<div class="fsDocTitle">GLASS Core User Guide</div>
<h1>Table of Contents</h1>


I include more code in the PDF Export stylesheet to further control the formatting a bit, also from the referenced document (haven't looked at tweaking that yet until the other TOC heading is fixed):

margin-left: auto;
margin-top: 50mm;
margin-right: auto;

font-size: 42px;
font-weight: bold;
margin: 72px 0 4px 0;

display: block;
margin-left: auto;
margin-right: auto;
width: 50%;


The resultant of all this is my correctly formatted title page, the following page with a properly formatted string of 'Table of Contents', but then what appears to be a page break before the table of contents (which currently consists of only 3 pages).


I tried removing the image in case its size was somehow causing a formatting issue, but the results are the same. I am not very well versed in this code (hence using the guides/tutorials) so this has me quite stumped.

Also, in case it makes a difference, we are currently on Confluence 7.4.1 and we won't be able to purchase any add-ons right now, so I'm looking for a stock way to solve this issue.

Thanks in advance for any help!


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

101 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you