Please see the following tutorial on step-by-step introduction to Action Wizard functionality.Add "Execute Java Script" tool to the "action" in Action Wizard to run a custom Java Script code.In this way you wouldn't need to install anything else, just work with what you already have installed in your system (at least both come by default in my rhel).Hope this helps, UPDATE: first of all thanks for all your nice comments!!
Acrobat Java Script implements extensions, in the form of new objects and their accompanying methods and properties, to the Java Script programming language.It will add "Plug-ins / Bookmark All Pages" menu to the Adobe Acrobat.The menu is disabled if there is no PDF document open.The menu is disabled if there is no PDF document open./* Trim Bookmark Titles */function Trim Bookmark Title(Num Chars, Bm, n Level)var root = this.bookmark Root;var Num Chars To Trim To = 10; // trim bookmark title to the first 10 characters Trim Bookmark Title(Num Chars To Trim To, root, 0);// Carbon Copy pages in the PDF file // IMPORTANT: Set Output Options to the filename you need// CHANGE THIS NUMBER: IT'S NUMBER OF ADDITIONAL COPIES var n Num Copies = 2; // make 1 additional copy(es) of each pagetry catch(e)// This script will scan all pages of the input document// and extract valid email addresses into new PDF document// Output PDF document will be placed in the same folder// as input.The name of the output document will be:// Original filename "_Extracted_Emails"// Visit more useful Java Script re Email = /(([^()[\]\.,;:\[email protected]\"] )*)|(\".You can use for example Or: PDFTK If you are NOT on Ubuntu and you have the same problem (and you wanted to start a new topic on SO and SO suggested to have a look at this question) you can also do it like this: Things You'll Need: may be the best (and certainly fastest) option.Update: If processing time is not the main concern, but if the main concern is file size (or a fine-grained control over certain features of the output file), then the Ghostscript way certainly offers more power to you. - as part of a batch processing sequence that can be applied to multiple files. - as document-level script to respond to actions like printing.The entire risk arising out of the use or performance of these scripts and documentation remains with you.The code below shows how to add "Bookmark All Pages" menu to the Adobe Acrobat interface.