Pdfviewer - FormFieldModel
19 Nov 20263 minutes to read
Interface for a class FormField
Properties
actions ActionsSettingsModel
Specifies the action settings of the button form field.
alignment TextAlignment
Get or set the text alignment of the form field.
backgroundColor string
Get or set the background color of the form field in hexadecimal string format.
borderColor string
Get or set the border color of the form field.
bounds IFormFieldBound
Get or set the form field bounds.
caption string
Specifies the caption displayed with the barcode.
color string
Get or set the font color of the form field in hexadecimal string format.
compressData boolean
Specifies whether the generated data is compressed before barcode encoding.
customData object
specifies the custom data of the form field.
customValue string
Specifies the custom barcode value to be encoded when the value format is set to CustomValue.
errorCorrectionLevel Pdf417ErrorCorrectionLevel|QRErrorCorrectionLevel
Specifies the barcode error correction level.
fields string[]
Specifies the source field names used to generate barcode content.
fontFamily string
Get or set the font family of the form field.
fontName string
specifies the fontName of the signature.
fontSize number
Get or set the font size of the form field.
fontStyle FontStyle
Get or set the font Style of form field.
id string
Gets the id of the form field.
includeFieldNames boolean
Specifies whether field names are included in the generated barcode content.
insertSpaces boolean
Meaningful only if the MaxLength property is set and the Multiline, Password properties are false.
If set, the field is automatically divided into as many equally spaced position, or combs, as the value of MaxLength, and the text is laid out into the combs.
isChecked boolean
Specifies whether the check box is in checked state or not.
isMultiline boolean
Allows multiline input in the text field. FALSE, by default.
isPrint boolean
Get or set the boolean value to print the form field. TRUE by default.
isReadOnly boolean
If it is set as true, can’t edit the form field in the PDF document. By default it is false.
isRequired boolean
Gets or set the is Required of form field.
isSelected boolean
Specifies whether the radio button is in selected state or not.
isTransparent boolean
Get the isTransparent of the form field. Default value is false.
maxLength number
Get or set the maximum character length.
name string
Gets the name of the form field.
options ItemModel[]
Get or set the form field items. This can be Dropdown items or Listbox items.
pageIndex number
Get the pageIndex of the form field. Default value is -1.
pageNumber number
Get the pageNumber of the form field. Default value is 1.
rotateAngle number
Get the rotateAngle of the form field. Default value is 0.
selectedIndex number[]
Get the selectedIndex of the form field. Default value is null.
signatureIndicatorSettings SignatureIndicatorSettingsModel
Specifies the properties of the signature indicator in the signature field.
signatureType SignatureType[]
specifies the type of the signature.
symbology BarcodeSymbology
Specifies the barcode symbology.
thickness number
Get or set the thickness of the form field.
tooltip string
Get or set the text to be displayed as tooltip. By default it is empty.
type FormFieldType
Gets the type of the form field.
value string
Gets or sets the value of the form field.
valueFormat BarcodeValueFormat
Specifies the format used to generate barcode content.
visibility Visibility
Gets or set the visibility of the form field.
xDimension number
Specifies the barcode module width.
zIndex number
Get the zIndex of the form field. Default value is 0.