Standards Based Development

Standards Based Development

Acrobat

Batch Sequencing Acrobat JavaScript

To create a batch sequence in Acrobat Professional with JavaScript:

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

Acrobat Javascript Samples Scripts

Acrobat JavaScript Code Samples

Mark misspelled words with squiggle

Spellchecks every word in the document and marks misspelled ones with squiggle annotation.

Example .txt

Create page bookmarks

Automatically creates a bookmark for each page in the document

Example .txt

Duplicate every page in the document (carbon copy)

Every page will be repeated N-times in the output (1,1,1,2,2,2...)

Example .txt

Extract email addresses

Extracts all email addresses from the document into new pdf file

Example .txt

Extract ISBN numbers

Extracts all ISBN numbers from the document into new pdf file

Example .txt

Acrobat Javascript Samples Scripts

Reader JavaScript Miscellanous

Reader JavaScript Console Window Reader JavaScript Console Window Toolbar

Reader JavaScript Console Window is a toolbar button displays the Acrobat JavaScript Console/Debugger Window in Adobe Reader and Acrobat Standard 7, 8, 9, and X. example .zip.

Free Acrobat Automation Tools

Flatten Page Content Tool Flatten Page Content Tool

Flatten Page Content Tool is a toolbar button flattens interactive elements, such as form fields, into the page content. example .zip.

Free Acrobat Automation Tools

Acrobat JavaScripting with PDFs Code Samples and Demonstrations

JavaScript Popup Calendar

Script is a popup calendar widget for a PDF form. The download includes fields, scripts, usage examples, and instructions for Installing a Popup Calendar on an Acrobat PDF Form.

Example .pdf

JavaScript Clocks

JavaScript implemented International Clock, Stop Watch, and Countdown Timer examples.

example .pdf

Free Sample PDF Files with Scripts

3d Robot Arm Demo

Script is a functional 3d Robot Arm rendered in the 3DAnnot; The arm moves through space to catch gold coins and deposit them in a bucket.

Example .pdf

Free Sample PDF Files with Scripts

Basic Form Calculations

JavaScript performing basic calculation events in a PDF; Nice page design by Ted Padova.

Example .pdf

Free Sample PDF Files with Scripts

Importing and Exporting File Attachments

Script demonstrates importing and exporting PDF file attachments from a non-privileged context. File must be displayed in Acrobat Professional or Standard.

Example .pdf

Free Sample PDF Files with Scripts

References and Resources