How to Build Hyperlinked Word TOC Entries That Survive PDF Export
🔍 WiseChecker

How to Build Hyperlinked Word TOC Entries That Survive PDF Export

You created a table of contents in Word with hyperlinks that work perfectly in the document. But when you export to PDF, the page numbers are there while the clickable links vanish or break. This happens because Word’s default TOC hyperlinks use internal bookmarks that PDF exporters sometimes strip or fail to map. This article explains exactly how to build TOC entries that remain clickable after PDF export and how to verify the result.

Key Takeaways: Hyperlinked TOC That Works in PDF

  • References > Table of Contents > Custom Table of Contents > Options > Use hyperlinks instead of page numbers: Forces Word to embed clickable HYPERLINK fields in the TOC instead of page reference fields
  • File > Options > Display > Print PostScript over text (Windows-only): Prevents hyperlink layer corruption during PDF generation on Windows 10 and Windows 11
  • Ctrl + A then Ctrl + F11 (Lock fields): Prevents accidental field update that would replace hyperlinks with plain page numbers

ADVERTISEMENT

Why Word TOC Hyperlinks Break in PDF Export

Word builds a table of contents using fields. The default TOC field (TOC \o) generates page numbers linked to hidden bookmarks. When you export to PDF, Word’s PDF engine or third-party PDF printers often convert those bookmarks into PDF internal links. However, several conditions cause those links to fail.

The root cause is that Word stores TOC hyperlinks as HYPERLINK fields only when you enable the option “Use hyperlinks instead of page numbers” in the TOC settings. Without that option, the TOC uses page reference fields (PAGEREF) that many PDF exporters treat as static text. The fix is to rebuild the TOC with HYPERLINK fields active.

How HYPERLINK Fields Differ From PAGEREF Fields

A PAGEREF field returns the page number of a bookmark. A HYPERLINK field creates a clickable link to a bookmark. PDF readers recognize HYPERLINK fields natively. PAGEREF fields are converted to plain text by most PDF generators unless the generator specifically maps them. By switching to HYPERLINK fields, you ensure the PDF reader sees a true link object.

Steps to Build a TOC With Hyperlinks That Survive PDF Export

  1. Apply heading styles to all TOC entries
    Select each heading and apply Heading 1, Heading 2, or Heading 3 from the Home tab > Styles group. The TOC will only pick up styled headings. Without these styles, the TOC cannot generate entries.
  2. Open the Table of Contents dialog
    Go to the References tab and click Table of Contents. At the bottom of the dropdown, choose Custom Table of Contents. This opens the Table of Contents dialog box.
  3. Enable hyperlinks instead of page numbers
    In the Table of Contents dialog, click Options. In the Table of Contents Options dialog, check the box labeled “Use hyperlinks instead of page numbers”. Click OK to close Options, then click OK to close the main dialog. Word will insert a TOC where each entry is a HYPERLINK field.
  4. Test the TOC in Word
    Hold Ctrl and click any TOC entry. Word should jump to the corresponding heading. If it does not, the HYPERLINK field is not active. Press Ctrl + A to select the entire TOC, then press F9 to update fields. When prompted, choose “Update entire table”.
  5. Export to PDF using Word’s built-in exporter
    Go to File > Export > Create PDF/XPS. Click Options, then under “Publish what”, verify that “Document” is selected. Check the box “Document structure tags for accessibility” — this preserves hyperlinks. Click OK, then click Publish.
  6. Verify hyperlinks in the PDF
    Open the PDF in Adobe Acrobat Reader or your default PDF viewer. Hover over a TOC entry. The cursor should change to a hand icon. Click the entry. The view should jump to the correct heading. If it does not, repeat the process with the locked-field method in the next section.

Lock the TOC Fields to Prevent Accidental Replacement

If you update the TOC later, Word may replace the HYPERLINK fields with PAGEREF fields if the “Use hyperlinks instead of page numbers” option was unchecked at the time of the update. To prevent this, lock the TOC fields after you confirm they work.

  1. Select the entire TOC
    Click anywhere inside the TOC. Press Ctrl + A to select all entries.
  2. Lock the fields
    Press Ctrl + F11. This locks each field so it cannot be updated. The TOC entries will remain as HYPERLINK fields until you unlock them with Ctrl + Shift + F11.
  3. Export the PDF again
    Repeat the export steps from the main procedure. The locked fields will survive the PDF conversion.

ADVERTISEMENT

Common PDF Export Problems and Their Fixes

PDF Exporter Ignores the Hyperlinks Option

Some third-party PDF printers such as Adobe PDF or Foxit PDF Printer do not read Word’s HYPERLINK fields. They treat the TOC as regular text. The fix is to use Word’s built-in Create PDF/XPS exporter instead of a printer driver. The built-in exporter maps HYPERLINK fields to PDF link annotations.

Hyperlinks Work in Word but Not in the PDF

This usually happens when the PDF export option “Document structure tags for accessibility” is unchecked. Open the export options again and make sure that box is checked. Also verify that the TOC was built with the “Use hyperlinks instead of page numbers” option enabled — not just the checkbox in the Custom Table of Contents dialog, but the actual field code must contain HYPERLINK.

Page Numbers Disappear When Hyperlinks Are Enabled

When you check “Use hyperlinks instead of page numbers”, Word hides the page numbers in the TOC display. To show page numbers alongside hyperlinks, go to the Table of Contents dialog and check “Show page numbers” and “Right align page numbers”. The HYPERLINK field will still be used, and the PDF will display both the link and the page number.

Word Built-In Export vs Third-Party PDF Printer: Hyperlink Behavior

Item Word Built-In Export (Create PDF/XPS) Third-Party PDF Printer (Adobe, Foxit, etc.)
Hyperlink field support Native — maps HYPERLINK fields to PDF link annotations Inconsistent — many printers ignore HYPERLINK fields in TOC
Page number display Preserves page numbers if option is checked Preserves page numbers but strips hyperlinks
Document structure tags Required for hyperlinks — must be checked in Options Not used — printer renders text only
Field locking needed Recommended to prevent accidental update Not relevant — hyperlinks are lost regardless
File size Smaller — uses native PDF objects Larger — rasterizes text if printer settings are high resolution

Use Word’s built-in export for any document where TOC hyperlinks must survive. Reserve third-party printers for documents where hyperlinks are not critical.

You can now create a table of contents where every entry remains a clickable hyperlink after PDF export. Before distributing the PDF, test each TOC entry by clicking it. For ongoing projects, lock the TOC fields with Ctrl + F11 to prevent accidental field updates that would strip the hyperlinks. If you need to edit the document later, unlock the fields with Ctrl + Shift + F11, make your changes, then rebuild the TOC with the hyperlink option enabled and lock the fields again.

ADVERTISEMENT