Standards Based Development
Standards Based Development
Acrobat
Batch Sequencing Acrobat JavaScript
To create a batch sequence in Acrobat Professional with JavaScript:
- Select “Advanced / Batch processing…”
- Click “New Sequence” button
- Type in command name, for example “ExtractEmails” and click”OK”
- Click “Select Commands” button in “Batch – Edit Sequence" dialog
- Select “Execute JavaScript” item from the list and click “Add>>” button
- Now click “Edit…” button and “JavaScript Editor” dialog will pop up
- Copy JavaScript code into this dialog and click “OK”
- Click “OK” three times until you are back to “Batch Sequence” dialog
- Now you just created new batch command that will be always available for batch processing
- Optional step: click "Output Options" button and define output file name and some additional options. Desired options may vary depending on script requirements
- To run the command: select it from the list of commands and click “Run Sequence” button
Acrobat JavaScript Code Samples
Mark misspelled words with squiggle
Spellchecks every word in the document and marks misspelled ones with squiggle annotation.
Create page bookmarks
Automatically creates a bookmark for each page in the document
Duplicate every page in the document (carbon copy)
Every page will be repeated N-times in the output (1,1,1,2,2,2...)
Extract email addresses
Extracts all email addresses from the document into new pdf file
Extract ISBN numbers
Extracts all ISBN numbers from the document into new pdf file
Reader JavaScript Miscellanous
Reader JavaScript Console Window 
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.
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.
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.
JavaScript Clocks
JavaScript implemented International Clock, Stop Watch, and Countdown Timer examples.
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.
Free Sample PDF Files with Scripts
Basic Form Calculations
JavaScript performing basic calculation events in a PDF; Nice page design by Ted Padova.
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.
References and Resources
- The Acrobat JavaScript Console Window
- What's Acrobat JavaScript?
- Use JavaScript Actions to Split Large Files in Acrobat 10
- Instructions for Installing Folder Level Scripts (Automation Tools)
- Basic Document Level (Document Open) Scripts
- JavaScript for Acrobat
- An Introduction to JavaScript for Acrobat
- Developing Acrobat Applications Using JavaScript
- JavaScript for Acrobat API Reference
- JavaScript for Acrobat 3D Annotations API Reference
- Acrobat Tracker
- Batch Sequences
- Acrobat JavaScript Console - Learn how to test and debug Adobe JavaScript code with the Adobe JavaScript Console window
- Search for JavaScript tags in acrobatusers.com's tutorials