new AcroFormRadioButton()
- Source:
Extends
Members
appearanceState :any
- Source:
- Overrides:
(如果外观字典AP包含一个或多个子字典时必需;PDF 1.2)注释的外观状态,用于从外观子字典中选择适用的外观流(参见第12.5.5节“外观流”)
Type:
- any
caption :string
- Source:
- Overrides:
从 PDF 参考: (可选,按钮字段) 小部件注释的正常标题,当它不与用户互动时显示。 与本表中列出的其余条目不同,CA 条目可以用于任何类型的按钮字段,包括复选框(参见 12.7.4.2,“按钮字段”)和单选按钮(参见 12.7.4.2,“按钮字段”)。
- '8' = Cross,
- 'l' = Circle,
- '' = nothing
Type:
- string
color :string|rgba
- Source:
- Inherited From:
- Default Value:
- 'black'
文本颜色
Type:
- string | rgba
defaultValue :any
- Source:
- Inherited From:
- Default Value:
- null
(可选; 可继承) 当执行重置表单操作时,字段恢复的默认值(参见 12.7.5.3,“重置表单操作”)。此值的格式与 value 相同。
Type:
- any
fieldName :string
- Source:
- Inherited From:
- Default Value:
- null
(可选) 字段的部分名称(参见 12.7.3.2,“字段名称”)。
Type:
- string
fontName :string
- Source:
- Inherited From:
- Default Value:
- 'helvetica'
字体名称
Type:
- string
fontSize :number
- Source:
- Inherited From:
- Default Value:
- 0 (for auto)
字体大小
Type:
- number
fontStyle :string
- Source:
- Inherited From:
- Default Value:
- 'normal'
字体样式
Type:
- string
(readonly) hasAnnotation :boolean
- Source:
- Inherited From:
检查字段是否有注释
Type:
- boolean
(readonly) hasAppearanceStream :boolean
- Source:
- Inherited From:
如果字段有 appearanceStream,则为 true
Type:
- boolean
height :number
- Source:
- Inherited From:
- Default Value:
- null
字段高度。
Type:
- number
maxFontSize :number
- Source:
- Inherited From:
- Default Value:
- 0 (for auto)
字体最大字体大小。
Type:
- number
noExport :boolean
- Source:
- Inherited From:
- Default Value:
- false
如果设置,字段将不会通过 submit-form 操作导出(参见 12.7.5.2,“Submit-Form Action”)
Type:
- boolean
noToggleToOff :boolean
- Source:
- Inherited From:
(单选按钮) 如果设置,则始终选择一个单选按钮;选择当前选中的按钮没有效果。如果清除,点击选中的按钮会取消选择,不留下任何按钮。
Type:
- boolean
page :number
- Source:
- Inherited From:
AcroFormField 放置的页面
Type:
- number
pushButton :boolean
- Source:
- Overrides:
如果设置,字段是一个不保留永久值的按钮。
Type:
- boolean
radio :boolean
- Source:
- Overrides:
如果设置,字段是一组单选按钮;如果清除,字段是一个复选框。此标志只能在与 Pushbutton 标志一起设置时设置。
Type:
- boolean
radioIsUnison :boolean
- Source:
- Inherited From:
(PDF 1.5) 如果设置,一组单选按钮在单选按钮字段中使用相同的值时会同时打开和关闭;即如果一个被选中,它们都会被选中。如果清除,按钮是互斥的(与 HTML 单选按钮相同的行为)。
Type:
- boolean
readOnly :boolean
- Source:
- Inherited From:
- Default Value:
- false
如果设置,用户不能更改字段的值。任何关联的小部件注释不会与用户互动;即它们不会响应鼠标点击或改变外观以响应鼠标移动。此标志对于值是计算或从数据库导入的字段很有用。
Type:
- boolean
required :boolean
- Source:
- Inherited From:
- Default Value:
- false
如果设置,字段在通过 submitform 操作导出时将具有值(参见 12.7.5.2,“Submit-Form Action”)。
Type:
- boolean
showWhenPrinted :boolean
- Source:
- Inherited From:
- Default Value:
- true
(PDF 1.2) 如果设置,打印注释时打印注释。如果清除,无论是否显示在屏幕上,都不会打印注释。 注意 2 这可以用于表示交互式按钮的注释,这些按钮在打印页面上没有意义。
Type:
- boolean
textAlign :string
- Source:
- Inherited From:
- Default Value:
- 'left'
(可选; 可继承) 指定文本显示格式的代码:'left', 'center', 'right'
Type:
- string
value :any
- Source:
- Inherited From:
- Default Value:
- null
(可选; 可继承) 字段的值,其格式取决于字段类型。有关各字段类型的更多信息,请参阅各字段类型的描述。
Type:
- any
width :number
- Source:
- Inherited From:
- Default Value:
- null
字段宽度。
Type:
- number
x :number
- Source:
- Inherited From:
- Default Value:
- null
字段 x 位置。
Type:
- number
y :number
- Source:
- Inherited From:
- Default Value:
- null
字段 y 位置。
Type:
- number