Wednesday, April 30, 2008

Customize Acrobat Using JavaScript

Create custom Acrobat menu items and batch processing scripts.

Acrobat can do most of the things that you need. Yet, there's always something you wish it did a little differently. Acrobat enables you to add custom features using plain-text JavaScripts. These scripts can add menu items to Acrobat's menus or add tailored sequences to Acrobat's batch processing.

Acrobat JavaScript builds on the language core familiar to web developers, but its document object model is completely different from the DOM used by web browsers. Acrobat's JavaScript objects are documented in Technical Note 5186: Acrobat JavaScript Object Specification. Access it online from http://partners.adobe.com/asn/developer/pdfs/tn/5186AcroJS.pdf. Another useful document is the Acrobat JavaScript Scripting Guide from http://partners.adobe.com/asn/acrobat/sdk/public/docs/AcroJSGuide.pdf.

The JavaScript Debugger (Acrobat 6 Pro) or Console (Acrobat 5) is the place to test new ideas. Open it by selecting Advanced > JavaScript > Debugger . . . (Acrobat 6 Pro) or Tools > JavaScript > Console . . . (Acrobat 5).

1 comments:

digital signatures said...

I am new to Java Script so do not have much experience. You right that Create custom Acrobat menu items and batch processing scripts.These scripts can add menu items to Acrobat's menus or add tailored sequences to Acrobat's batch processing. Thanks a lot !!