How to Fix a Word Table of Contents Showing Only Page Numbers in PDF
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.
Ensure your document is fully saved and create a backup copy before adjusting field properties, font formatting, or PDF export settings.
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.
Go to the 'View' tab and select 'Print Layout' to confirm how the document is intended to appear on the page.
Click inside the Table of Contents to highlight the entire block of text.
Right-click on the selected Table of Contents, choose 'Update Field', and then select 'Update entire table'.
Navigate to the 'Home' tab and check the 'Font Color' settings to ensure the text is set to Automatic or Black, not White.
Press 'Ctrl + D' to open the Font dialog box and ensure the 'Hidden' effect checkbox is completely unchecked.
Re-export Using Standard PDF Settings
Export the document using the built-in standard PDF publishing feature rather than third-party virtual printers.
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. Open Document in WPS Writer: Launch WPS Office and open your text document using WPS Writer.
- 2. Generate or Update TOC: Navigate to the 'References' tab and use the 'Table of Contents' feature to insert or update your TOC.
- 3. Access PDF Export: Click on 'Menu' in the top-left corner and select 'Export to PDF'.
- 4. Export and Save: Review the export settings, ensuring bookmarks are enabled, and click 'Export' to generate a flawless PDF.

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.




