Get bookmarks text in Acrobat

To get the text of the top-level bookmarks in a PDF:

  1. Ctrl+K > JavaScript > Enable JavaScript debugger after Acrobat is restarted
  2. Close Acrobat
  3. Open Acrobat
  4. Ctrl+J
  5. Paste the following in the console
for (var bkm = this.bookmarkRoot.children, i = 0; i < bkm.length; i++) {console.println(bkm[i].name);}
  1. Ctrl+Enter
  2. Ta-da!
Jordan Biserkov About Blog GitHub Links Projects

07 September 2014


Jordan@Biserkov.com     +359 88 60 222 93 UTC+2     @jbiserkov