PDF Bookmarks Guide: Outlines & Navigation

Bookmarks give readers a direct route to sections in a long PDF. A document can remain readable without them, but a useful outline can make navigation easier. The time needed depends on the source structure and authoring software.

Outline Structure

Outline ElementHoldsNotes
TitleDisplay labelText string; character encoding and viewer support affect display
DestinationPage + viewExplicit or named destination
Parent / Child linksTree positionEnables nesting up to many levels
Next / PrevSiblingsDefines display order
Color & styleOptional visual cuesBold/italic for top-level chapters
ActionOptional richer behaviourJavaScript, URI — use sparingly

Manual vs Programmatic Bookmarks

For a short document, manual bookmarks in a PDF editor may be convenient. For regenerated reports, programmatic outlines may be easier to maintain. PyMuPDF and iText offer outline features; pdf-lib has no high-level bookmark API, so outline creation needs low-level objects or another library. Heading extraction is a separate step.

Good Bookmark Hygiene

  1. Mirror the visible heading hierarchy — H1 = top level, H2 = child, etc.
  2. Use concise, descriptive labels. About 60 characters can be an editorial starting point, not a PDF limit; check wrapping in target readers.
  3. Use stable destinations for chapter starts. Both named destinations and explicit page references need verification after page edits; displayed page numbers are not reliable identifiers.
  4. Set the document's PageMode to UseOutlines to request an open outline panel; viewers can ignore this preference.
  5. Test outlines in intended desktop and mobile readers; nesting, navigation controls and display vary by application.

Common Problems

  • Wrong destinations: inspect how the authoring or editing tool generated bookmark destinations. Re-export or repair them as appropriate, then test each link; enabling bookmarks alone may not fix incorrect destinations.
  • Outline panel hidden by default: set PageMode = UseOutlines in the catalog.
  • Wrong zoom on click: choose Fit, FitH or an appropriate XYZ destination for the intended view. XYZ can specify coordinates and zoom, or retain current values when those parameters are null.
  • Broken after merge: use a merge tool that preserves outlines and re-targets pages.

A Quick Workflow to Add Bookmarks

The fastest reliable path depends on where the document comes from:

  1. Authoring in a word processor? Apply real heading styles (Heading 1, 2, 3). If the PDF exporter offers bookmarks from headings, enable that option. Export options differ between Word versions and Google Docs; inspect the resulting PDF rather than assuming an identical setting or outline.
  2. Exporting from LaTeX? The hyperref package builds the outline automatically from your \section hierarchy.
  3. Working with an existing flat PDF? Open it in a PDF editor, turn on the outline panel, and add a top-level entry at each chapter start, nesting sub-sections beneath. Use only the nesting needed for navigation and test it in the intended readers; three levels is a design convention, not a compatibility guarantee.
  4. Regenerating the file often? Use a library with outline support and supply an explicit heading-to-page mapping. Recheck the mapping after pagination changes; pdf-lib requires a separate low-level implementation.

Whichever route you take, finish by setting PageMode to UseOutlines to request an open panel in supporting viewers, and click through every entry once to confirm the destinations land where you expect.

Combine Sectioned PDFs

Merge chapter PDFs in your chosen page order. This tool does not preserve document bookmarks; rebuild and verify the outline in a PDF editor afterward.

Merge PDF →

Frequently Asked Questions

A table of contents is visible page content the reader scrolls to; bookmarks are a separate side-panel navigation tree that stays available no matter where you are in the document. Good long PDFs usually have both — a TOC for print and overview, bookmarks for fast on-screen jumping.
Use an authoring application with explicit bookmark export support, enable the relevant options and verify the PDF. Libraries may require custom outline construction; pdf-lib does not provide a simple built-in bookmark-preservation workflow.
Word, LaTeX with hyperref and InDesign offer outline-related export workflows. Support varies by application, version and settings; test the resulting destinations.
If the merge tool preserves outlines and re-targets pages. Always verify.
PageMode /UseOutlines requests an outline panel; viewers may ignore that preference.