What to Do When the Table of Contents Shows "Undefined Bookmark" After Converting Word to PDF
After converting Word to PDF, the table of contents shows "Error! Bookmark not defined." This is usually because the bookmarks referenced by the TOC field are no longer valid, or because stale field results were used during export. This article explains how to identify the cause, update fields and rebuild the table of contents in Word, and then verify the TOC page in the PDF.
Key Points of This Article
- "Error! Bookmark not defined" indicates that the TOC field cannot find a bookmark for the corresponding heading, so the problem must be fixed in the original Word source file.
- First select all in Word and update fields; if errors remain, delete the old table of contents and reinsert an automatic TOC.
- Headings must use heading styles; manually bolded body text will not generate TOC bookmarks.
- If the document is normal in Word but errors appear only after converting to PDF, the conversion step recalculated the fields, so compare the two exported results.
- After exporting to PDF, you must check the table of contents page, inspect each entry for remaining errors, and test the hyperlinks.
If you've built a table of contents in Word, and after exporting to PDF you open it to find "Error! Bookmark not defined." after the entries, or those words filling every page-number spot, then that is the "Word to PDF table of contents error: bookmark not defined" problem. This error is sometimes not obvious in the original Word file and only shows up once it has been converted to PDF, so many people suspect the conversion tool and keep reinstalling or switching export methods.
This article is for readers who write theses, reports, or bid documents in Word and need to submit a PDF version. After reading it, you will be able to tell whether the error comes from the Word table of contents itself or from the conversion step carrying over stale field results. You will also learn to fix it in the right order and build the habit of checking before exporting.
In short, the table of contents is generated by a field called a "domain" (field), and each entry links to a bookmark at the heading. Once a bookmark is lost or renamed, the field cannot find its target, so this error is displayed. Understanding this makes the troubleshooting approach clear.
What to do when a table of contents shows "undefined bookmark"? One-sentence conclusion
Answer directly: first update all fields in Word and regenerate the table of contents, then export to PDF after confirming there are no errors. If it looks normal in Word but errors appear only after converting to PDF, then check the conversion step.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| Table of contents in Word is already displaying incorrectly | First fix it in Word, then export it | The error has been written to the file; the conversion just carried it over as-is. |
| It works normally in Word, but only appears after converting to PDF. | Compare the results of exporting directly from Word with those of other export methods | Different tools have different rules for refreshing domains. |
| Changed the title or copied a paragraph | Delete the old table of contents and reinsert an automatic table of contents. | The bookmark corresponding to the title may have been deleted or renamed. |
| The document was saved by other software or merged from multiple people. | Open in Word, save as .docx, then rebuild the table of contents | Domains and bookmarks are easily lost during format conversion. |
| Table of contents entries are visible but clicking them doesn't jump | Rebuild the table of contents, and test the jumps in the PDF | The internal location that the link points to is no longer valid. |
First determine which type of problem it is
The table below can help you find the right match. First identify the symptom, then check the common causes and how to confirm them, so you avoid making changes blindly.
| Symptoms | Common causes | How to confirm? |
|---|---|---|
| "Error! Bookmark not defined" appears after table of contents entries | Bookmark referenced by the table of contents field has been deleted | Press Alt+F9 in Word to display field codes, then check whether the bookmarks that the TOC field points to still exist. |
| Works in Word, errors in PDF | Fields were recalculated during export or conversion, or outdated cached results were used. | View the table of contents in Word and the TOC page in the PDF separately, and check whether the differences only appear after export. |
| Only some chapters are reporting errors | These headings were copied, pasted, deleted, or had their styles changed. | Find the heading corresponding to the error entry, and confirm whether the heading still exists and whether its style is correct. |
| Page numbers are out of order, but there is no such error. | The table of contents was not updated with the content. | Select all, then update fields, and observe whether the page numbers change. |
| Cross-reference error in the body text | The cited bookmark or caption has been deleted | Use Alt+F9 to display the field codes and check whether the target of each reference exists |
Item-by-item troubleshooting and fixes
Follow the steps below in order, from easiest to hardest. In most cases, the problem will be solved within the first few steps.
- Back up the original file. Save a copy before making any changes. If the repair goes wrong, you can revert to the original state.
- Select all and update fields. In Word, press Ctrl+A to select everything, then press F9 to update all fields. If a prompt appears, choose to update the entire table of contents.
- Check the table of contents. Look to see whether any entries still show errors. If everything is correct, skip to Step 7 and verify the exported result. If errors remain, continue to the next step.
- Delete the old table of contents and reinsert it. Remove the existing table of contents and insert a new automatic one at the target location. Note that headings must use heading styles (such as "Heading 1" or "Heading 2"), not manually bolded body text; otherwise the table of contents will not generate the corresponding bookmarks.
- Check the headings behind the error entries. Confirm whether the heading was accidentally deleted, changed to another style, or sits in a paragraph that has been removed. After correcting it, update the table of contents again.
- Check the cross-references. If the body text contains references such as "see Section 3," they may show the same error. Press Alt+F9 to switch to field code view, locate the faulty reference, then delete it and reinsert it, or correct the heading it points to. After making changes, press Alt+F9 to switch back to normal view, and press F9 again to update the fields.
- Export to PDF. Use Word's built-in export function. Open and check the PDF immediately after exporting, rather than discovering problems just before submission.
- Verify the table of contents page in the PDF. Review each entry for leftover errors, and click several entries to confirm they jump to the correct sections.
If the issue is caused by the conversion step
If the table of contents in Word has always worked normally and only shows errors after passing through a certain conversion tool, the cause is usually that the tool recalculated the fields during conversion, or could not find the original bookmarks. In this case, you can handle it as follows:
- Minimize the number of format conversions: export the PDF directly from the repaired .docx using Word.
- Compare the two export results: for example, export one copy directly with Word and another with an online conversion site, then see which one shows errors, to determine which step caused the problem.
- If you use the OmniDoc desktop client, you can open the exported file in its PDF editor and check the table of contents text. Use the "Compare two PDFs" feature to compare the versions before and after repair, confirming that the changes appear only in the table of contents section.
- It is not recommended to directly hand-edit the incorrect table of contents text in the PDF. This only covers the problem visually; the table of contents links and page number relationships remain broken, so the correct approach is still to go back to Word and fix it there.
How to Avoid It Happening Again
- Use heading styles for all headings; do not fake headings with manual bold or enlarged font size.
- After deleting sections, restructuring, or merging files, update fields immediately rather than waiting until export.
- When pasting sections from other documents, choose the "keep text only" paste option to avoid carrying over the other document's fields and bookmarks.
- In multi-author collaboration, have each author update their own table of contents before merging, then consolidate centrally.
- Establish a fixed export checklist: update fields, review the table of contents, test hyperlinks/jumps, and check the TOC page in the exported PDF.
- Keep the original .docx file as the editable version and use the PDF only as the delivery version, so that any issues can be corrected by returning to the source file.
❓ Frequently Asked Questions (FAQ)
1. After converting Word to PDF, the table of contents shows an "undefined bookmark" error. Can I delete it directly in the PDF?
Not recommended. Deleting text in the PDF only makes it visually disappear; the links and page-number relationships of the table of contents entries remain incorrect. You should go back to Word, fix the document, and then export it again.
2. The file looks fine in my Word, but others see an error when they open it. Why?
The other party may have used a different version of Word or other software, so fields were recalculated in their environment, or the file went through a format conversion. Ask them to update the fields, or send them the corrected PDF directly.
3. The table of contents page numbers are still incorrect after updating fields. What should I do?
Check whether there are redundant page breaks or section breaks before headings, and confirm that the page number format is consistent across all sections. Table of contents page numbers depend on the actual layout, so update the table of contents once more after all content fixes are complete.
4. Why can some table-of-contents entries be clicked to jump after converting to PDF, while others cannot?
Usually this means the bookmark for that entry is missing or invalid. Go back to Word and re-insert the table of contents. In a PDF you can only check it; the bookmarks cannot be rebuilt there.
📝 Summary
In the table of contents, "Undefined bookmark" refers to a case where the TOC field cannot find the bookmark that matches a heading. First update the fields and rebuild the table of contents in Word, then export to PDF and check the TOC page, and the problem can be resolved at its source. Making a habit of checking before exporting can keep this kind of problem from recurring.


