A table of contents (TOC) on the opening pages of a long PDF gives readers an overview of structure and a navigation path. It is both content (you read it) and navigation (you click it). This guide walks through the practical ways to add a TOC, generate one from existing structure, and make it work well.
Two kinds of TOC
Distinguish:
- Visible TOC, text on the page showing chapter / section titles with page numbers; usually clickable to navigate
- PDF bookmarks, separate navigation panel in the reader; not visible on the page but easy to access
Most well-organized PDFs have both. Visible TOC is in the body; bookmarks are in the navigation panel.
For bookmarks specifically, see how to add bookmarks to PDF and how to create bookmarks from headings.
TOC at the source
The cleanest place to generate TOC is in the source document:
Microsoft Word:
- Apply Heading 1, 2, 3 styles to section headings
- Position cursor where TOC should go
- References → Table of Contents → choose style
- TOC auto-generates with hyperlinks
- Save As PDF, hyperlinks become PDF hyperlinks
LibreOffice Writer:
- Apply heading styles
- Insert → Table of Contents and Index → Table of Contents, Index or Bibliography
- Choose settings, OK
- Export to PDF
Google Docs:
- Apply heading styles
- Insert → Table of contents → choose style
- TOC is hyperlinked
- Download as PDF
LaTeX:
\tableofcontents
\section{First Section}
\subsection{Subsection}
LaTeX automatically generates TOC from sections. Run pdflatex twice (the first pass writes the TOC info; the second pass formats it).
Adobe InDesign:
- Layout → Table of Contents
- Choose paragraph styles to include
- Place the TOC on a page
- Export to PDF with hyperlinks enabled
Manual TOC
For documents where auto-TOC is impractical:
- Create a "Table of Contents" page in your document
- Type each section title and page number
- Format as a table or list
- Save as PDF
- In Acrobat Pro, add hyperlinks from each TOC entry to the destination page
This is tedious for long documents but works.
TOC for an existing PDF
If you have a PDF without a TOC and need to add one:
Add to the front of the PDF:
- Author a TOC document in Word (with hyperlinks to internal references)
- Save as PDF
- Combine the TOC PDF with the original, see how to combine PDF files
- Adjust hyperlinks to point to correct pages in the combined PDF
Add hyperlinks to an existing TOC page:
If the PDF already has a TOC page but it's not clickable:
- Open in Acrobat Pro
- Tools → Edit PDF
- Click each TOC entry → Right-click → Create Link
- Set destination to the relevant page
For long TOCs, this is slow. Scripting alternatives:
- pikepdf to add hyperlinks programmatically based on detected text
- Adobe Acrobat actions for batch hyperlink generation
Formatting a visible TOC
A typical TOC entry:
Chapter 1: Introduction.................. 5
1.1 Background....................... 6
1.2 Methodology...................... 10
Chapter 2: Findings...................... 15
...
Common styling:
- Right-align page numbers with dot leaders
- Indentation for subsections
- Bold for major sections
- Hyperlinks on each entry
In Word, the default TOC styles handle this; LaTeX similar.
Page numbering
TOC entries reference page numbers. Two systems:
- Physical page index, page 5 of the PDF file
- Page labels, "v" for front matter, "1" for body content (often the more useful)
PDFs support page labels separate from physical pages. Acrobat Pro: Tools → Organize Pages → Page Labels.
For a book with Roman numeral front matter:
- Cover (no label)
- Title page (no label)
- TOC (i, ii, iii)
- Body content (1, 2, 3, ...)
The TOC entries should reference the page labels (the visible numbering), not the physical pages.
Multi-level TOC
For long documents, multiple levels:
- Level 1: Major sections (chapters)
- Level 2: Subsections
- Level 3: Sub-subsections
Visually, indent each level. Functionally, all are hyperlinked.
Most authoring tools support multi-level TOC generation from heading hierarchy.
TOC in technical manuals
Technical manuals often have:
- Main TOC at the start
- Per-chapter mini-TOCs
- Index at the end
For mini-TOCs per chapter, generate them per section in the source document. LaTeX's \minitoc package handles this elegantly.
TOC and accessibility
For accessible PDFs:
- TOC entries should be tagged as a list or specifically as a TOC structure
- Each entry should be a working link to the section
- Reading order should be clear
Tagged TOCs work with screen readers; untagged TOCs may not read intelligibly. See PDF/UA accessibility standard explained.
TOC update
When the document changes:
- In source: regenerate or update TOC (Word: References → Update Table)
- In PDF only: manual updates to TOC text and links
- Re-export from source is usually fastest
Keeping TOC in sync is one of the reasons to maintain the source document, not just the PDF.
Bookmarks vs visible TOC
Both serve readers but differently:
- Visible TOC, readers see it; can print; gives overview at a glance
- Bookmarks, readers see in navigation panel; always available; can be expanded/collapsed
For long documents, have both. See how to add bookmarks to PDF.
Tools
Authoring tools (Word, Google Docs, LibreOffice, InDesign, LaTeX), primary path for TOC generation.
Adobe Acrobat Pro, manual hyperlink creation for existing PDFs.
pdftk, for combining a TOC PDF with main content.
pikepdf, programmatic hyperlink and outline manipulation.
Browser-based, Docento.app supports common PDF operations alongside TOC workflows.
Common gotchas
Page numbers don't match. TOC says page 5, content is actually on page 8. Usually because TOC generated before content was finalized. Regenerate.
Hyperlinks broken. TOC entries link to wrong pages. Common when pages reorder. Regenerate TOC.
Manual TOC out of sync with content. Author updated content but forgot to update TOC. Discipline issue.
TOC styling inconsistent. Different fonts or sizes between TOC and body. Style guide and templates help.
Long titles wrap awkwardly. Section title runs to two lines in TOC. Either shorten title or accept the wrap.
No TOC at all in a long document. Universal pain point. Always add one for documents over ~20 pages.
Wrong page numbering system. TOC uses physical page numbers when readers want logical (label) numbers. Use page labels.
Untagged TOC. Not accessible. Tag the TOC list structure for accessibility.
Dot leaders missing or inconsistent. Style detail; tabs or leader characters should be uniform.
Cover and front matter included incorrectly. TOC should typically start "real" page numbering at the first body page, not the cover.
Practical recipes
For a Word document:
- Apply Heading 1, 2, 3 styles throughout
- Position cursor where TOC should appear (usually after title page)
- References → Table of Contents
- Choose a style with hyperlinks
- Save As PDF
- Verify hyperlinks work in PDF
For a LaTeX document:
- Use
\section{},\subsection{}, etc. - Add
\tableofcontentsearly in the document - Run
pdflatextwice - TOC appears with hyperlinks
For an existing PDF needing a TOC:
- Author TOC in Word
- Save as PDF
- Combine with main PDF
- Edit hyperlinks if pages shifted
Takeaway
Tables of contents make long PDFs navigable. The cleanest path is automatic generation from the source document, Word, LibreOffice, LaTeX, InDesign all support this when content uses proper heading styles. For PDFs that lack a TOC, you can add one manually or combine with a separately-authored TOC document. Pair the visible TOC with PDF bookmarks for the best navigation experience. For browser-based PDF operations alongside TOC work, Docento.app handles common tasks. For related topics, see how to add bookmarks to PDF, how to create bookmarks from headings, and how to combine PDF files.