logo
search
Formatting Issues

How to Fix a Word Table of Contents Showing Only Page Numbers in PDF

Maira MehtabMaira Mehtab Sep 22, 2026 868 views

Question details

The user needs to fix an issue where a Table of Contents looks correct in the word processor but loses its text and displays only page numbers after being exported to a PDF file.

Product
Word Processor
Device & OS
not provided
Scenario
Exporting or saving a document with a Table of Contents as a PDF file.
Observed behavior
The resulting PDF shows only the page numbers for the Table of Contents, with the actual heading text completely missing or invisible.
Before you start

Ensure your document is fully saved and create a backup copy before adjusting field properties, font formatting, or PDF export settings.

Solution 1Recommended

Update Table of Contents and Verify Font Visibility

Ensure that the TOC text is not formatted as hidden or colored white, and update the fields before exporting.

Sometimes the text in a Table of Contents is accidentally set to match the background color or formatted as hidden text. While it might render under certain view modes, it will disappear upon PDF export.

1
Switch to Print Layout

Go to the 'View' tab and select 'Print Layout' to confirm how the document is intended to appear on the page.

2
Select the Table of Contents

Click inside the Table of Contents to highlight the entire block of text.

3
Update the Field

Right-click on the selected Table of Contents, choose 'Update Field', and then select 'Update entire table'.

4
Check Font Color

Navigate to the 'Home' tab and check the 'Font Color' settings to ensure the text is set to Automatic or Black, not White.

5
Disable Hidden Formatting

Press 'Ctrl + D' to open the Font dialog box and ensure the 'Hidden' effect checkbox is completely unchecked.

Reliable PDF Export

Export Documents to PDF Seamlessly with WPS Office

WPS Office provides a highly reliable, built-in PDF conversion tool that accurately preserves your Table of Contents, fonts, and formatting without missing text.

  1. 1. Open Document in WPS Writer: Launch WPS Office and open your text document using WPS Writer.
  2. 2. Generate or Update TOC: Navigate to the 'References' tab and use the 'Table of Contents' feature to insert or update your TOC.
  3. 3. Access PDF Export: Click on 'Menu' in the top-left corner and select 'Export to PDF'.
  4. 4. Export and Save: Review the export settings, ensuring bookmarks are enabled, and click 'Export' to generate a flawless PDF.
Native PDF export guarantees exact formatting and text preservation.Fully compatible with Microsoft Word (.docx) formats.Easily generate, style, and update Table of Contents.Free to use with a lightweight, user-friendly interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Table of Contents disappear when converting to PDF?

This usually happens if the TOC font is set to hidden, the text color matches the page background, or if the PDF export settings fail to render field codes properly.

How do I ensure PDF bookmarks are created from my Table of Contents?

When saving your document as a PDF, click on 'Options' in the Save dialog box and check the box for 'Create bookmarks using: Headings'.

Can updating the fields fix missing TOC text?

Yes, right-clicking the Table of Contents and selecting 'Update Field' followed by 'Update entire table' forces the word processor to refresh both the text and page numbers, which often resolves display and export errors.