User Guide

Adding JavaScript files to Adobe PDF documents
You can include a JavaScript (JS) file with an Adobe PDF document that has 3D content
by doing one of the following:
Send it as a separate file that users can load and run manually. Recipients must typically
save the JavaScript file to their hard drive. To activate the script, they select the 3D
design, right-click (Windows) or Control-click (Mac OS) the design, select Run A
JavaScript, and browse for the JavaScript file to load. This runs the script but doesn't save
it with the image.
Embed it as part of the 3D design. Embedding a JS file saves the JavaScript structure as
part of the PDF document after you save changes to the PDF document.
To embed a JavaScript file into a 3D model:
1. Using the Select Object Tool from the Advanced Editing toolbar, double-click the 3D
model.
2. In the 3D Properties dialog box, select Edit Content.
3. In the Add 3D Content dialog box, click Browse For Default Script, and locate the
JavaScript file.
The content of the 3D context menu may change after a JavaScript file has been
embedded in the 3D design. With JavaScript added, recipients can use the context menu to
increase or decrease the playing speed and to view animation properties.