How to check Inactive Bookmarks in PDF | Acrobat

Summary

How to find an inactive bookmark, which does not have a target, in a PDF which has several bookmarks?

Objective

To check Inactive Bookmarks in a PDF using Acrobat.

Environment

Acrobat

Steps

There is no direct method to achieve it in Acrobat. You can use a script or third party plug-in to check for inactive bookmarks. 

Sample JavaScript: 

  1. Get list of all bookmarks using - var myBookmarksList = this.bookmarkRoot.children.
  2. Loop through each bookmark, that is, for (var i=0; i<myBookmarksList.length; i++)
  3. Within each iteration, set the current view to a value that is not the destination of a bookmark (for example, page = x, zoom = 1234)
  4. Execute the bookmark using myBookmarksList [i] = myBookmarksList [i].execute().
  5. If the view is different, then it is an indication that the bookmark is valid. Else, delete the bookmark using myBookmarksList [i].remove().

Adobe, Inc.

Get help faster and easier

New user?