EasyManua.ls Logo

Adobe ACROBAT FORMS JAVASCRIPT OBJECT - User Manual

Adobe ACROBAT FORMS JAVASCRIPT OBJECT
64 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Loading...
b
c
Acrobat Forms JavaScript
Object Specification
Version 4.0
Adobe
®
Acrobat
®
Revised: January 27, 1999
Technical Note # 5186

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Adobe ACROBAT FORMS JAVASCRIPT OBJECT and is the answer not in the manual?

Summary

Acrobat Forms JavaScript Object Model

App Object

Defines Acrobat-specific functions and utility routines for the application environment.

App Object Properties

Describes properties like calculate, formsVersion, and fullscreen for the App object.

App Object Properties

App Object Methods

alert

Displays an alert dialog box to the user with customizable message, icon, and button types.

mailMsg

Sends an email message, with options for user interaction and pre-populating fields.

Color Arrays

Color Object

A static object providing basic colors and keywords for use in setting color properties.

Color Properties

Lists predefined color keywords (e.g., color.red, color.black) and their usage in setting field text colors.

Console Object

Console Methods

Includes methods like show, hide, println, and clear for managing the console window and its output.

Doc Object

Doc Access from JavaScript

Explains how to access the Doc object using `this` or `event.target`.

Doc Object Properties

Details properties like author, calculate, and creator for document metadata and behavior.

Doc Object Properties

Doc Object Methods

calculateNow

Forces computation of all calculation fields within the current document.

getField

Maps a PDF form field to a JavaScript variable using its name.

mailDoc

Saves the current PDF document and sends it as an email attachment.

submitForm (continued)

Details parameters for submitForm, including URL, data format, and field submission options.

exportAsFDF

Exports form data to an FDF file on the local drive, with options for field inclusion.

mailForm

Exports form data as an FDF file and mails it as an attachment.

resetForm

Resets field values within the document, optionally targeting specific fields.

submitForm

Submits form data to a specific URL, supporting FDF or HTML formats.

importAnFDF

Imports data from a specified FDF file into the current document.

Event Object

Event Processing

Describes the processing order and triggers for various events like mouse actions and keystrokes.

Calculate

Recalculates fields that depend on a validated field's value.

Format

Changes the visual presentation of a data value to the user.

Keystroke

Triggered when a user types or pastes into a text or combo box.

Validate

Checks if a field's committed value is correct, triggering calculate if successful.

Event Object Properties

rc

Return code property to indicate if an event chain should proceed or be stopped.

value

Holds the committed value of a field, used in validation and calculations.

Field Object

Field Access from JavaScript

Explains how to bind a field to a JavaScript variable using `doc.getField()`.

Field Properties

Provides a chart of available field properties and their compatibility across field types.

Field Properties

print

Determines whether a specific field is included when the document is printed.

value

Gets or sets the data value entered by the user or calculated. Crucial for calculations.

Field Methods

Global Object

setPersistent

Makes a global variable persistent, ensuring its availability across viewer sessions.

setPersistent (continued)

Details naming conventions for persistent global variables to avoid collisions.

this Object

Util Object

Util Object Methods

Includes methods like printf for formatted string output.

Util Object Methods

Acrobat Forms and Security

Restricting Access

Discusses setting open passwords and using security handlers to lock forms.

Restricting Permissions

Explains document save time restrictions like printing, changing, and annotations.

Working with Signature Fields

Details how signature fields work, including signing, resetting, and locking/unlocking fields.

Digital Signatures

Allows verification of document integrity after a signature has been applied.

Adobe ACROBAT FORMS JAVASCRIPT OBJECT Specifications

General IconGeneral
CategorySoftware
LanguageJavaScript
TypeScripting API
PurposeTo manipulate and enhance PDF forms using JavaScript
CompatibilityAdobe Acrobat and Adobe Reader
FunctionalityProvides methods and properties for form field manipulation, validation, and dynamic content generation

Related product manuals