Bookmarks for every pages

User Rating:  / 1

bookmarks for each page creates bookmarks for every page of the PDF document.

  • Script : bookmarks for each page
  • Author :
  • Type : javascript
  • Compatibility : Acrobat - Windows / Mac OS
  • Price : FREE



  1. Copy the code below
  2. Menu Advanced options > Document processing > Batch processing
  3. Click on New sequence to make a new batch
  4. Give the batch a name and validate.
  5. Click on Select commands and choose Execute javascript in the list
  6. In the options, choose "Run commands on open documents in Acrobat"
  7. Click on Add and double click on the line "Execute javascript" on the right.
  8. In the popping window, paste the code below
  9. Click ok to close the window
  10. With an open document, launch the script via the same menu and choose Run sequence after selecting your action.

This script generates bookmarks for every pages in the PDF.

Select all

/* Create bookmarks for each page in the document */
var root = this.bookmarkRoot;
try {
for (var i = 0; i < this.numPages; i++)
       root.createChild("Page " + (i+1), "this.pageNum=" + i, i);
app.alert("Processing error: "+e)

You have no rights to post comments


#1 raja 2016-11-12 11:38


An original idea from Loic Aigon, designed by Eddy.VH. It 's a scripts library for Desktop Publishing Adobe products. Find Javascript for Photoshop, Illustrator, inDesign and Acrobat or ATN scripts ( Photoshop actions ) you need.


feed-image Follow

Scriptopedia to facebook