JavaScript support

One of the easiest and most powerful ways to customize PDF files is by using JavaScript. Based on JavaScript version 1.5 of ISO-16262 (formerly known as ECMAScript), JavaScript in Adobe® Acrobat® software implements objects, methods, and properties that enable you to manipulate PDF files, produce database-driven PDF files, modify the appearance of PDF files, and much more. You can tie Acrobat JavaScript code to a specific PDF document, a page, field, or button within that document, or a field or button within the PDF file, and even to a user action.

JavaScript is particularly useful for XML forms. JavaScript enables automated forms handling, Web and database communication, commenting, and user-interface capabilities. PDF files created with Acrobat and Adobe LiveCycle tools allow data to be extracted as XML into custom schemas. Applications written in Java and other languages easily integrate Acrobat with Web services using Simple Object Access Protocol (SOAP).

With Acrobat 7, there have been extensive improvements to the JavaScript functionality. There is now support for multimedia, improved printing control, controlling layers, 3D support, and more.


Converting Acrobat JavaScript for Use in LiveCycle® Designer Forms (PDF: 549K)

This document explains how to convert JavaScript contained in Adobe® Acrobat® Professional and Acrobat Standard forms for use in Adobe LiveCycle® Designer forms. Acrobat forms and LiveCycle Designer forms have different scripting object models, although most of the Acrobat forms model is supported in LiveCycle Designer forms. This document describes the differences and explains how to handle the conversion to help make the conversion as easy and effective as possible.

(Last updated 6/2005)

Acrobat JavaScript Scripting Reference (Acrobat 7.0.5) (PDF: 7.12M)

Get detailed descriptions of all objects, properties and methods within the Acrobat extension to JavaScript, as well as code samples.

(Last updated 10/2005)

Errata for Acrobat JavaScript Scripting Reference (PDF: 30k)

(Last updated 12/2005)

Acrobat JavaScript Scripting Guide (Acrobat 7.0.5) (PDF: 2.52M)

Use Acrobat JavaScript to develop and enhance standard workflows.

(Last updated 9/2005)

Acrobat JavaScript Scripting Reference (Acrobat 6.0) (PDF: 2.28M)

(Last updated 6/2005)

Acrobat JavaScript Scripting Guide (Acrobat 6.0) (PDF: 1.06M)

TestDebugger for Macintosh (HQX: 30k)

TestDebugger for Windows® (ZIP: 21k)

Programming Acrobat JavaScript Using Visual Basic (Acrobat 6.0) (PDF: 180k)

(Last updated 5/2003)

Multimedia JavaScript Reference (Acrobat 6.0)(PDF: 776k)

(Last updated 4/2004)

Acrobat JavaScript Object Specification (Acrobat 5.0) (PDF: 1.79M)

(Last updated 6/2005)

JavaScript Debugger (19k)

Use this file to enable the JavaScript Debugger in Adobe Reader, as described in the Acrobat JavaScript Scripting Guide.