[]
Represents group of radio buttons.
new RadioButtonField(om): RadioButtonField;
Creates a new RadioButtonField.
ObjectManager that controls the lifetime of the RadioButtonField.
RadioButtonField
Field.constructor
new RadioButtonField(): RadioButtonField;
Creates a new RadioButtonField.
RadioButtonField
Field.constructor
get alternateName(): string;
Gets or sets an alternate field name to be used in place of the actual field name wherever the field must be identified in the user interface (such as in error or status messages referring to the field). This text is also useful when extracting the document's contents in support of accessibility to users with disabilities or for other purposes.
string
set alternateName(value): void;
Gets or sets an alternate field name to be used in place of the actual field name wherever the field must be identified in the user interface (such as in error or status messages referring to the field). This text is also useful when extracting the document's contents in support of accessibility to users with disabilities or for other purposes.
string
void
get calculationIndex(): number;
Gets or sets an index that is used to determine the field's calculation order. Fields with lower indices are calculated before fields with higher indices.
If several fields have the same CalculationIndex, the calculation order is determined by the order of fields in the collection.
recalculateValue can be used to specify JavaScript that is used to calculate the field's value.
number
set calculationIndex(value): void;
Gets or sets an index that is used to determine the field's calculation order. Fields with lower indices are calculated before fields with higher indices.
If several fields have the same CalculationIndex, the calculation order is determined by the order of fields in the collection.
recalculateValue can be used to specify JavaScript that is used to calculate the field's value.
number
void
get children(): FieldCollection;
Gets the list of child fields.
get defaultValue(): string | number | boolean | number[];
Gets or sets the field's default value.
string | number | boolean | number[]
set defaultValue(value): void;
Gets or sets the field's default value.
string | number | boolean | number[]
void
get doc(): PdfDocument;
Gets the PdfDocument owning this field.
get export(): boolean;
Gets or sets a value indicating whether the field must not be exported by a ActionSubmitForm action.
boolean
set export(value): void;
Gets or sets a value indicating whether the field must not be exported by a ActionSubmitForm action.
boolean
void
get formatValue(): ActionJavaScript;
Gets or sets a JavaScript action to be performed before the field is formatted to display its current value. This action can modify the field's value before formatting.
set formatValue(value): void;
Gets or sets a JavaScript action to be performed before the field is formatted to display its current value. This action can modify the field's value before formatting.
| ActionJavaScriptProperties
| ActionJavaScript
void
get id(): number;
Gets the reference to the object.
number
get justification(): VariableTextJustification;
Gets or sets the justification to be used in displaying the field's text. Note that this field is used only if WidgetAnnotation#justification is not specified.
set justification(value): void;
Gets or sets the justification to be used in displaying the field's text. Note that this field is used only if WidgetAnnotation#justification is not specified.
void
get keyPress(): ActionJavaScript;
Gets or sets a JavaScript action to be performed when the user types a keystroke into a text field or combo box or modifies the selection in a scrollable list box. This action can check the keystroke for validity and reject or modify it.
set keyPress(value): void;
Gets or sets a JavaScript action to be performed when the user types a keystroke into a text field or combo box or modifies the selection in a scrollable list box. This action can check the keystroke for validity and reject or modify it.
| ActionJavaScriptProperties
| ActionJavaScript
void
get mappingName(): string;
Gets or sets the mapping name to be used when exporting interactive form field data from the document.
string
set mappingName(value): void;
Gets or sets the mapping name to be used when exporting interactive form field data from the document.
string
void
get name(): string;
Gets or sets the field's name.
string
set name(value): void;
Gets or sets the field's name.
string
void
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get opt(): string[];
Gets or sets an array of strings containing one entry for each widget annotation, defining export values for its constituent radio buttons. See the PDF spec for details.
string[]
set opt(value): void;
Gets or sets an array of strings containing one entry for each widget annotation, defining export values for its constituent radio buttons. See the PDF spec for details.
string[]
void
get owner(): FieldCollection;
Gets the FieldCollection containing this field.
get parent(): Field;
Gets the parent field.
get radiosInUnison(): boolean;
Gets or sets a value indicating whether a group of radio buttons within a radio button field that use the same value for the on state will turn on and off in unison; that is if one is checked, they are all checked. If clear, the buttons are mutually exclusive (the same behavior as HTML radio buttons).
boolean
set radiosInUnison(value): void;
Gets or sets a value indicating whether a group of radio buttons within a radio button field that use the same value for the on state will turn on and off in unison; that is if one is checked, they are all checked. If clear, the buttons are mutually exclusive (the same behavior as HTML radio buttons).
boolean
void
get readOnly(): boolean;
Gets or sets a value indicating whether the user may not change the value of the field. Any associated widget annotations will not interact with the user; that is, they will not respond to mouse clicks or change their appearance in response to mouse motions. This flag is useful for fields whose values are computed or imported from a database.
boolean
set readOnly(value): void;
Gets or sets a value indicating whether the user may not change the value of the field. Any associated widget annotations will not interact with the user; that is, they will not respond to mouse clicks or change their appearance in response to mouse motions. This flag is useful for fields whose values are computed or imported from a database.
boolean
void
get recalculateValue(): ActionJavaScript;
Gets or sets a JavaScript action to be performed to recalculate the value of this field when that of another field changes.
set recalculateValue(value): void;
Gets or sets a JavaScript action to be performed to recalculate the value of this field when that of another field changes.
| ActionJavaScriptProperties
| ActionJavaScript
void
get required(): boolean;
Gets or sets a value indicating whether the field must have a value at the time it is exported by a ActionSubmitForm action.
boolean
set required(value): void;
Gets or sets a value indicating whether the field must have a value at the time it is exported by a ActionSubmitForm action.
boolean
void
get value(): string | number | boolean | number[];
Gets or sets the field's value.
string | number | boolean | number[]
set value(value): void;
Gets or sets the field's value.
string | number | boolean | number[]
void
get valueChanged(): ActionJavaScript;
Gets or sets a JavaScript action to be performed when the field's value is changed. This action can check the new value for validity.
set valueChanged(value): void;
Gets or sets a JavaScript action to be performed when the field's value is changed. This action can check the new value for validity.
| ActionJavaScriptProperties
| ActionJavaScript
void
get widgets(): FieldWidgetCollection;
Gets the list of widget annotations associated with this field.
addItem(
page,
bounds,
checkStyle?,
borderStyle?): WidgetAnnotation;
Creates a new WidgetAnnotation and adds it to the Field#widgets collection.
The page on which the new WidgetAnnotation will be placed.
The bounds of the new WidgetAnnotation on "page".
The check mark style.
The border style.
Returns the created WidgetAnnotation object.
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
getCheckedAppearanceStreamName(widgetIndex): string;
Gets the name of the checked appearance stream for the widget annotation at the specified index.
number
The zero-based index of the widget annotation.
string
The appearance stream name, or null if not defined.
getCheckedAppearanceStreamNames(): string[];
Gets the names of the checked appearance streams for all widget annotations associated with this RadioButtonField.
Each entry corresponds to a widget annotation (in the same order as Field#widgets) and contains the name of the appearance stream used to display the widget's checked state.
string[]
An array of appearance stream names, or null if not defined.
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void
setCheckedAppearanceStreamName(widgetIndex, value): void;
Sets the name of the checked appearance stream for the widget annotation at the specified index.
number
The zero-based index of the widget annotation.
string
The appearance stream name to assign.
void
setCheckedAppearanceStreamNames(value): void;
Sets the names of the checked appearance streams for all widget annotations associated with this RadioButtonField.
Each entry corresponds to a widget annotation (in the same order as Field#widgets) and specifies the name of the appearance stream used to display the widget's checked state.
string
The appearance stream name to assign.
void