Adobe Acrobat Help
Batch Processing Adding Multiple bookmarks
Creating Bookmarks For Multiple PDF’s in Acrobat
You can use the Batch Processing option to automate a number of task that would ordinarily be laborious. For example if you want to a watermark or a header across multiple acrobat documents.
- Advanced – Document Processing – Batch Processing.
- New Sequence. To start a new Batch Processing sequence.
- Enter in a name for the new sequence for this example use: “Add Page Number bookmarks”.
- Click on Select Commands button at top. (You’ll see a list of commands which, if you take the time to scroll through them, allow you to processing a variety of procedures).
- Scroll down and click on Execute JavaScript and then click on the Add button.
- Click OK again to close the edit sequence dialogue box.
- In the Edit Batch Sequence dialogue box from the Run Commands on menu select Selected folder.
- Click on the browse button and find the folder where your Acrobat Files are located. The page number bookmarks will be added to all files within that folder.
- Click Source File Options this option allows you to change the file types that Acrobat will convert and bookmark within the folder you selected in the previous step. If you don’t want Acrobat to convert a certain file type then uncheck the checkbox next to the relevant file type.
Click OK to close window.
(These file types are in addition to PDF, which is automatically generated). - From the Select Output Location menu select Specific folder then click on the browse button then navigate to a folder of your choice and create a folder by clicking on the Create New Folder button. For example on the desktop create a folder called Bookmarked Acrobat Files then Click OK.
- Select the Output Options button to bring up the Output Options dialogue box.
- Select the Add to Original(s) base name radio button and add type ‘_bookmarked’ in the insert after box. Then Click OK.
(This allows you to change the filename of all the bookmarked files quite handy if you wanted to keep the bookmarked files within the same folder). - Back in the Batch Sequence dialogue box ensure that the Add Page Number bookmarks Sequence is selected and then click Run Sequence – Click on OK in next box to confirm.
(Adobe Acrobat will process you files for you).
Ensuring that the Execute JavaScript option is selected on the right click on edit to edit the JavaScript Code. (A code window will open allowing you to enter your JavaScript).
Note: Adobe Acrobat uses a variety of objects, methods and properties that are specifically designed for Acrobat to learn more about the language please see help.
Type the following Script into the script editing window. Then Click OK.
/* 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);
}
}
catch(e)
{
app.alert("Processing error: "+e)
}

