AcroFormChoiceField

AcroForm~ AcroFormChoiceField

new AcroFormChoiceField()

Source:

Extends

Members

color :string|rgba

Source:
Inherited From:
Default Value:
  • 'black'

The color of the text

Type:
  • string | rgba

defaultValue :any

Source:
Inherited From:
Default Value:
  • null

(Optional; inheritable) The default value to which the field reverts when a reset-form action is executed (see 12.7.5.3, “Reset-Form Action”). The format of this value is the same as that of value.

Type:
  • any

fieldName :string

Source:
Inherited From:
Default Value:
  • null

(Optional) The partial field name (see 12.7.3.2, “Field Names”).

Type:
  • string

fontName :string

Source:
Inherited From:
Default Value:
  • 'helvetica'

The fontName of the font to be used.

Type:
  • string

fontSize :number

Source:
Inherited From:
Default Value:
  • 0 (for auto)

The fontSize of the font to be used.

Type:
  • number

fontStyle :string

Source:
Inherited From:
Default Value:
  • 'normal'

The fontStyle of the font to be used.

Type:
  • string

(readonly) hasAnnotation :boolean

Source:
Inherited From:

Check if field has annotations

Type:
  • boolean

(readonly) hasAppearanceStream :boolean

Source:
Inherited From:

true if field has an appearanceStream

Type:
  • boolean

height :number

Source:
Inherited From:
Default Value:
  • null

The height of the field.

Type:
  • number

maxFontSize :number

Source:
Inherited From:
Default Value:
  • 0 (for auto)

The maximum fontSize of the font to be used.

Type:
  • number

noExport :boolean

Source:
Inherited From:
Default Value:
  • false

If set, the field shall not be exported by a submit-form action (see 12.7.5.2, “Submit-Form Action”)

Type:
  • boolean

page :number

Source:
Inherited From:

The page on which the AcroFormField is placed

Type:
  • number

readOnly :boolean

Source:
Inherited From:
Default Value:
  • false

If set, 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.

Type:
  • boolean

required :boolean

Source:
Inherited From:
Default Value:
  • false

If set, the field shall have a value at the time it is exported by a submitform action (see 12.7.5.2, “Submit-Form Action”).

Type:
  • boolean

showWhenPrinted :boolean

Source:
Inherited From:
Default Value:
  • true

(PDF 1.2) If set, print the annotation when the page is printed. If clear, never print the annotation, regardless of wether is is displayed on the screen. NOTE 2 This can be useful for annotations representing interactive pushbuttons, which would serve no meaningful purpose on the printed page.

Type:
  • boolean

textAlign :string

Source:
Inherited From:
Default Value:
  • 'left'

(Optional; inheritable) A code specifying the form of quadding (justification) that shall be used in displaying the text: 'left', 'center', 'right'

Type:
  • string

value :any

Source:
Inherited From:
Default Value:
  • null

(Optional; inheritable) The field’s value, whose format varies depending on the field type. See the descriptions of individual field types for further information.

Type:
  • any

width :number

Source:
Inherited From:
Default Value:
  • null

The width of the field.

Type:
  • number

x :number

Source:
Inherited From:
Default Value:
  • null

The x-position of the field.

Type:
  • number

y :number

Source:
Inherited From:
Default Value:
  • null

The y-position of the field.

Type:
  • number