Acrobat

Acrobat References and Examples

Acrobat JavaScript is Adobe's JavaScript framework ....for Acrobat...Reader....Acrobat Reader?

How to Create a Batch Sequence in JavaScript

  1. Start Acrobat Professional.
  2. Select “Advanced / Batch processing…” from the main menu.
  3. Click “New Sequence” button.
  4. Type in command name, for example “ExtractEmails” and click”OK”.
  5. Click “Select Commands” button in “Batch – Edit Sequence" dialog.
  6. Select “Execute JavaScript” item from the list and click “Add>>” button.
  7. Now click “Edit…” button and “JavaScript Editor” dialog will pop up.
  8. Copy JavaScript code into this dialog and click “OK”.
  9. Click “OK” three times until you are back to “Batch Sequence” dialog
  10. Now you just created new batch command that will be always available for batch processing.
  11. Optional step: click "Output Options" button and define output file name and some additional options. Desired options may vary depending on script requirements.
  12. To run the command: select it from the list of commands and click “Run Sequence” button.

Acrobat JavaScript Examples

Delete Pages Without Text

Delete pages from the document that contain no text elements. 19 Jan 2005 for Acrobat Versions: 5.0 and up

Extract email addresses

Extracts all email addresses from the document into new pdf file. 11 Nov 2004 for Acrobat Versions: 5.0 and up