1. JavaScript Scripting Reference

Introduction

This chapter is a complete reference to Acrobat JavaScript objects, methods, and properties. It is organized alphabetically by object type.

See “Quick Bars” on page 4 for a description of the symbols that appear at the beginning of property and method descriptions.

Syntax

Some JavaScript objects are static objects that can be used as is and must be spelled as indicated. For example, the app Object (page 49) represents the JavaScript application. There is only one such object and it must be spelled app (case-sensitive).

Other objects are dynamic objects that can be assigned to a variable. For example, a Document Object (page 188) may be obtained and assigned to a variable:

var myDoc = app.newDoc(); ...

Get Adobe Acrobat Official JavaScript Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.