Table of Contents

Automatically generate a navigable table of contents from the headings in your exported pages.

Overview

When enabled, a table of contents (TOC) is inserted after the cover page (if present) and before the main content. Entries are generated from heading elements (H1, H2, H3) found in the exported pages and link directly to the corresponding sections in the PDF.


Enabling the Table of Contents

TOC is configured per template:

  1. Go to Confluence Settings → PDF Exporter
  2. Open a template to edit (or create a new one)
  3. Toggle Table of Contents to enabled
  4. Set the Depth (see below)
  5. Save the template

Depth Setting

Control how many heading levels appear in the TOC:

Depth Headings Included
1 H1 only
2 H1 and H2
3 H1, H2, and H3

A depth of 2 is a good default for most documents. Use depth 3 for technical documentation where sub-sections are important for navigation.


Multi-Page Exports

When exporting multiple pages, the TOC covers all exported pages in order. Each page's headings appear under the page title as a top-level TOC entry.


TOC and Cover Page

If both a cover page and a table of contents are enabled, the order is:

  1. Cover page
  2. Table of contents
  3. Content pages

PDF Bookmarks

For an additional layer of navigation, enable PDF Bookmarks in the template settings. This adds a collapsible bookmark panel in the PDF viewer sidebar (supported by Acrobat, Preview, and most modern PDF readers), separate from the in-document TOC page.