2
Acrobat JavaScript Tools
Exercise: Working with the JavaScript Console
Formatting Code
To indent code in the JavaScript console, use the
Tab
key.
●
To indent four spaces to the right, position the cursor at the beginning of a single line or
highlight the block of code, and press the
Tab
key.
To indent four spaces to the left, position the cursor at the beginning of a single line or
highlight a block of code and press
Shift+Tab.
●
Exercise: Working with the JavaScript Console
N
OTE
:
To complete this exercise, you will need Acrobat Professional installed on your
machine.
In this exercise you will verify that JavaScript is enabled for Acrobat and begin working with
the Acrobat JavaScript Console to edit and evaluate code.
At the end of the exercise you will be able to:
●
●
●
●
Enable or disable Acrobat JavaScript.
Enable or disable the JavaScript debugger.
Open the Acrobat Console.
Evaluate code in the console window.
32
Acrobat JavaScript Scripting Guide