Adobe 12001196 - Acrobat - Mac Manual page 65

Javascript
Hide thumbs Also See for 12001196 - Acrobat - Mac:
Table of Contents

Advertisement

Appearance Tab
The Appearance tab allows you to set the basic appearance of the field. The table below
summarizes how the appearance can be set programmatically using JavaScript.
Region/Name
Borders and Colors
Border Color
Fill Color
Line Thickness
Line Style
Text
Font Size
Text Color
Font
Options Tab
The Options tab allows you to set the highlighting, the layout and the button-face
attributes.
Region/Name
Layout
Behavior
Advanced ...
When to Scale
Scale
Fit to bounds
Button/Icon
position scale
Icon and Label
State
Label
Acrobat JavaScript Scripting Guide
See Reference
strokeColor
fillColor
lineWidth
borderStyle
textSize
textColor
textFont
See Reference
buttonPosition
highlight
buttonScaleWhen
buttonScaleHow
buttonFitBounds
and
buttonAlignX
buttonAlignY
buttonSetIcon
and
buttonSetCaption
buttonGetCaption
Using Acrobat JavaScript in Forms
Creating form fields programmatically
Example
f.strokeColor = color.black;
f.fillColor = color.ltGray;
f.lineWidth = 1;
f.borderStyle = style.b
f.textSize = 16;
f.textColor = color.blue;
f.textFont = font.Times;
Example
f.buttonPosition =
position.iconOnly;
f.hightlight = hightlight.p
f.buttonScaleWhen =
scaleHow.always
f.buttonScaleHow =
scaleHow.proportional
buttonFitBounds = true;
f.buttonAlignX = 50;
f.buttonAlignY = 50;
f.buttonSetIcon(i);
f.buttonSetCaption("Push Me");
4
65

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents