How to solve the problem of undefined bookmarks in PDF directory

Explain the common reasons for "undefined bookmark" errors in PDF directories, distinguish between source file problems and PDF itself problems, and provide troubleshooting steps from Word update fields to PDF correction target pages.

Key points of this article

  • "Error! Undefined bookmark" is displayed directly in the directory. Usually the bookmark in the source file has been deleted or the domain has not been updated, and the source file needs to be repaired.
  • The text in the table of contents is normal, but clicking will jump to the wrong page. The problem is mostly in the bookmarks or links of the PDF. Just repair the PDF.
  • In Word, press Ctrl+A and then press F9 to update all fields, and use Alt+F9 to check the field codes, which can locate most errors.
  • If the source file is lost after finalization, you can use the PDF editor to modify the table of contents text, and use the comparison function to confirm the scope of changes.
  • Check cross-references before deleting titles or inserts, and update the table of contents before exporting to avoid recurring errors.

Seeing "Error! Bookmark not defined" on the table of contents page of a PDF, or jumping to the wrong location after clicking a table of contents entry, is a problem that many people encounter before submitting their manuscript. This type of PDF table of contents error often occurs in papers, reports, and contracts exported from Word: the table of contents lines are still there, but each line points to a bookmark that no longer exists.

This article is for anyone who needs to submit, archive or distribute PDFs. After reading, you can tell whether the error comes from the source file or the PDF itself, fix the table of contents in order, and avoid the same problem next time.

An undefined bookmark appears in the directory, how to fix it? One sentence conclusion

If the error text is written directly on the table of contents page, first go back to the source file (mostly Word) to update the fields and table of contents, and then re-export the PDF. If the text in the table of contents is normal and only the click jump error occurs, there is no need to modify the source file and you can directly correct the bookmarks or links in the PDF.

your situationRecommended practicesreason
The visible text on the directory page is "Error! Undefined bookmark"Return to the source file to update all fields, regenerate the directory and export it.The error is written in the document content, and the PDF just copies it faithfully.
The directory text is normal, but it jumps to an error page after clicking it.Fix bookmark target or link in PDFThe problem lies in the bookmark structure of the PDF, the source file may be fine
You just deleted, inserted or reordered pages in PDFFirst use the page operation to return the page order, and then check the bookmarks and page numbers.After the page number changes, the original jump target becomes invalid.
The catalog is a scanned picture, and text cannot be selected.First perform OCR recognition, and then determine which type of problem it belongs to.If you can’t see the text, you can’t confirm the specific content of the error report.

First determine what kind of problem it is

First look at where the error occurs, and then check the table below to confirm the reason. After making a clear judgment, practicing the law will be much easier.

symptomsCommon causesHow to confirm
The directory line directly says "Error! Undefined bookmark"The bookmark pointed to by the table of contents or cross-reference was deleted, or the domain was not updatedPress Alt+F9 in Word to display the field code and see if the bookmark after REF or PAGEREF exists
The error only appears in the "See Section X" part of the text.Cross-referenced titles or bookmarks were deleted or renamedLocate the text, see if it is a domain, and check the referring bookmark
The directory text is normal, click to jump to the error pagePDF bookmarks or internal links still point to old page numbersOpen the bookmark panel of the PDF reader, click on each item one by one, and record the wrong items.
After clicking, it prompts that the target does not exist, or always jumps to the last page.The target page is deleted, or the number of pages changes after exportingCompare the page numbers on the table of contents with the actual number of pages in the PDF
The table of contents does not have any links, just plain textNo bookmarks or hyperlinks are generated when exportingCheck whether the PDF has a bookmark panel. If not, you need to go back to the source file and re-export it.

Check and repair item by item

The amendment depends on whether the source document is still there. The two situations are quite different and will be explained separately below.

Situation 1: The source file is still there and the error is from Word

  1. Open the document in Word, press Ctrl+A to select all, and then press F9 to update all fields. If a selection pops up, the priority is to update the entire directory.
  2. Press Alt+F9 to display the field codes, search for "Error" or "Undefined", and check the bookmarks referenced by the field one by one.
  3. If the referenced bookmark has been deleted, re-add a bookmark with the same name at the corresponding title or paragraph; if the reference is no longer necessary, directly delete the field and change it to ordinary text.
  4. Press Alt+F9 again to turn off field codes and check whether the table of contents page numbers and cross-references are displayed normally.
  5. Re-export the PDF, search for the word "error" in the PDF, and confirm that there are no residues.

Situation 2: The source file is lost, or the PDF has been finalized

  1. First open the bookmark panel in the PDF reader, click on items one by one, and record which items jump to the wrong place and where.
  2. If the catalog is a scanned copy, perform OCR first and then check the recognized text. OCR results may have errors, and key page numbers must be manually compared.
  3. If only individual error words are reported, use the PDF editor of the OmniDoc desktop client (download.omnidoc.top) to directly modify the paragraph text, and change "Error! Undefined bookmark" to the correct page number or delete it.
  4. If the page numbers are misaligned due to page insertion or deletion, use page operations (insert, delete, move pages) to return the page order to the original, and then check the table of contents page numbers.
  5. After the modification is completed, use the comparison function to compare the two PDFs before and after the modification to confirm that only the table of contents has changed and that the text has not been mistakenly modified.

How to avoid it happening again next time

  • The table of contents is automatically generated, do not enter page numbers manually. After the title is modified, update the directory and domain in a timely manner.
  • Before deleting titles, paragraphs or inserting large sections of content, check whether there are cross-references pointing to them to avoid deleting referenced bookmarks.
  • Before finalizing, select all in Word and press F9 to update once. After exporting the PDF, search for "error" to confirm that there is no error text.
  • Keep source files. When making changes, go back to the source file and re-export it. Don’t just make repeated repairs on the PDF, otherwise errors will occur the next time you make changes.
  • After adding or deleting pages, recheck the table of contents page numbers and bookmark jumps before delivering.

❓ Frequently Asked Questions (FAQ)

1. I have updated the domain, why is the undefined bookmark still displayed?

This indicates that the bookmark referenced by the domain does not exist in the document. Updating the domain can only refresh the display results, and cannot retrieve deleted bookmarks out of thin air. You need to re-add a bookmark with the same name at the corresponding location, or change this reference to ordinary text.

2. There is only PDF and no Word source file, how to repair it?

Edit directly on PDF. Use the PDF editor to modify the incorrect text in the table of contents, then use page operations to adjust the page order, and finally compare the versions before and after the modification. If the page is a scan, do OCR first and then check it item by item.

3. Will this kind of error also occur in PDFs typed by LaTeX?

Similar problems in LaTeX usually manifest themselves as undefined references or targets, and the error messages are not exactly the same. A common practice is to check whether the tag name spelling is consistent, and then recompile until the log no longer prompts undefined references.

4. Can the table of contents of the scanned PDF be modified?

Yes, but you need to do OCR first to turn the text into editable content. OCR recognition may make errors. Please check the page numbers and bookmarks against the original page before and after modification to avoid writing wrong numbers into the table of contents.

📝 Summary

The key to the "undefined bookmark" error in the PDF directory is to determine whether it is a source file problem or a PDF problem. If the fields in the source file can be updated, go back to the source file and repair it. After the PDF is finalized, directly modify the table of contents and check the bookmark jump. By following the steps in this article, retaining source files and updating domains in daily production, you can reduce the recurrence of this type of error.

Open OmniDoc and use the PDF editor to work with your document

Updated 2026-11-11