new AcroFormPasswordField()
- Source:
Extends
Members
color :string|rgba
- Source:
- Inherited From:
- Default Value:
- 'black'
文本的颜色
Type:
- string | rgba
comb :boolean
- Source:
- Inherited From:
(PDF 1.5) 仅当文本字段字典中存在 MaxLen 条目(参见表 229)并且 Multiline、Password 和 FileSelect 标志清除时,才可以设置。如果设置,该字段应自动分为与 MaxLen 值一样多的等间距位置或梳子,并且文本被布置到这些梳子中。
Type:
- boolean
defaultValue :any
- Source:
- Inherited From:
- Default Value:
- null
(可选; 可继承) 当执行重置表单操作时,字段恢复到的默认值(参见 12.7.5.3,“重置表单操作”)。此值的格式与 value 的格式相同。
Type:
- any
doNotScroll :boolean
- Source:
- Inherited From:
(PDF 1.4) 如果设置,该字段不应滚动(单行字段水平滚动,多行字段垂直滚动)以适应比其注释矩形内更多的文本。一旦字段已满,交互式表单填写将不再接受任何文本;对于非交互式表单填写,填写者应注意不要添加比定义区域内可见的字符更多的字符。
Type:
- boolean
doNotSpellCheck :boolean
- Source:
- Inherited From:
(PDF 1.4) 如果设置,则不应对在该字段中输入的文本进行拼写检查。
Type:
- boolean
fieldName :string
- Source:
- Inherited From:
- Default Value:
- null
(可选) 部分字段名称(参见 12.7.3.2,“字段名称”)。
Type:
- string
fileSelect :boolean
- Source:
- Inherited From:
(PDF 1.4) 如果设置,则在该字段中输入的文本表示文件的路径名,该文件的内容应作为该字段的值提交。
Type:
- boolean
fontName :string
- Source:
- Inherited From:
- Default Value:
- 'helvetica'
要使用的字体的 fontName。
Type:
- string
fontSize :number
- Source:
- Inherited From:
- Default Value:
- 0 (for auto)
要使用的字体的 fontSize。
Type:
- number
fontStyle :string
- Source:
- Inherited From:
- Default Value:
- 'normal'
要使用的字体的 fontStyle。
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)
要使用的字体的最大 fontSize。
Type:
- number
maxLength :number
- Source:
- Inherited From:
(可选; 可继承) 字段文本的最大长度(以字符为单位)。
Type:
- number
multiline :boolean
- Source:
- Inherited From:
如果设置,则该字段可能包含多行文本;如果清除,则该字段的文本应限制为单行。
Type:
- boolean
noExport :boolean
- Source:
- Inherited From:
- Default Value:
- false
如果设置,则不应通过提交表单操作导出该字段(参见 12.7.5.2,“提交表单操作”)
Type:
- boolean
page :number
- Source:
- Inherited From:
AcroFormField 所在的页面
Type:
- number
password :boolean
- Source:
- Overrides:
如果设置,则该字段用于输入不应在屏幕上可见回显的安全密码。从键盘键入的字符应以某种无法读取的形式回显,例如星号或项目符号。 注意:为了保护密码的机密性,如果设置了此标志,则读取器不应将文本字段的值存储在 PDF 文件中。
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,“提交表单操作”)。
Type:
- boolean
richText :boolean
- Source:
- Inherited From:
(PDF 1.5) 如果设置,则此字段的值应为富文本字符串(参见 12.7.3.4,“富文本字符串”)。如果该字段具有值,则字段字典的 RV 条目(表 222)应指定富文本字符串。
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:
- 继承自:
- 默认值:
- null
字段的x坐标位置。
类型:
- number
y :number
- 源:
- 继承自:
- 默认值:
- null
字段的y坐标位置。
类型:
- number