new AcroFormTextField()
- Source:
Extends
Members
color :string|rgba
- Source:
- Inherited From:
- Default Value:
- 'black'
文本颜色
Type:
- string | rgba
defaultValue :any
- Source:
- Inherited From:
- Default Value:
- null
(可选; 可继承) 当执行 reset-form 操作时,字段恢复的默认值(参见 12.7.5.3,“Reset-Form Action”)。此值的格式与 value 相同。
Type:
- any
fieldName :string
- Source:
- Inherited From:
- Default Value:
- null
(可选) 字段的部分名称(参见 12.7.3.2,“Field Names”)。
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
page :number
- Source:
- Inherited From:
AcroFormField 放置的页面
Type:
- number
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