|
FoxitPDFSDKforWeb
7.1.1
Foxit PDF SDK for Web
|
Public Member Functions | |
| getAlignment () | |
| Get field's alignment. More... | |
| getBorderColor () | |
| Get field's border color. More... | |
| getBorderStyle () | |
| Get field's border style. More... | |
| getFillColor () | |
| Get field's fill color. More... | |
| getFlags () | |
| Get field's flags. For more information, refer to Field_Flag. More... | |
| getMaxLength () | |
| Get text field's max length. More... | |
| getName () | |
| Get form field's name(aka title). More... | |
| getOptions () | |
| Set combo box and list box's options. More... | |
| getType () | |
| Get form field's type. More... | |
| getValue () | |
| Get field value. More... | |
| setAction (type, data) | |
| Set field's action. More... | |
| setAlignment (alignment) | |
| Set field's alignment(Not support signature field). More... | |
| setBorderColor (borderColor) | |
| Set field's border color(Not support signature field). More... | |
| setBorderStyle (strStyle) | |
| Set field's border style(Not support signature field). More... | |
| setFillColor (fillColor) | |
| Set field's fillcolor(Not support signature field). More... | |
| setMaxLength (maxLength) | |
| Set text field's max length. More... | |
| setOptions (options) | |
| Set options(items) of list box or combo box. More... | |
| setValue (value='', control=null) | |
| Set field's value. More... | |
PDF Form Field object
|
inline |
Get field's alignment.
|
inline |
Get field's border color.
|
inline |
Get field's border style.
|
inline |
Get field's fill color.
|
inline |
Get field's flags. For more information, refer to Field_Flag.
|
inline |
Get text field's max length.
|
inline |
Get form field's name(aka title).
|
inline |
Set combo box and list box's options.
|
inline |
Get form field's type.
|
inline |
Get field value.
|
inline |
Set field's action.
| type | {number} - The type of action. Currently only -1 which represend java script action is valid. |
| data | {string|*} - The type of action. For java script action, it should be a string object. |
|
inline |
Set field's alignment(Not support signature field).
| alignment | {number} - Alignment. 0: left alignment, 1: center alignment, 2: right alignment, |
|
inline |
Set field's border color(Not support signature field).
| borderColor | {Array[T]} - Border color for field. Such as: ['RGB',1,0,0],//for red color ['T'],//for transparent ['G',1],//for white ['int',0xffff0000], //for red ['CMYK',1,1,0,0],//for red |
|
inline |
Set field's border style(Not support signature field).
| style | {string} - Border style, should be one of 'solid','dashed','inset','beveled'. Nothing will be done with invalid string |
|
inline |
Set field's fillcolor(Not support signature field).
| fillColor | {Array[T]} - Fill color for field. Such as: ['RGB',1,0,0],//for red color ['T'],//for transparent ['G',1],//for white ['int',0xffff0000], //for red ['CMYK',1,1,0,0],//for red |
|
inline |
Set text field's max length.
| maxLength | {number} - Max legnth to be setted to field. |
|
inline |
Set options(items) of list box or combo box.
Applicable for list box and combo box. For field types that are not applicable, this function will do nothing.
| options | {Array[Object]} - An array of options which is to be set to list box or combo box. [ { lable:"lable0", value:"value0" },{ lable:"lable1", value:"value1" }, ... ] |
|
inline |
Set field's value.
| value | {string} - Field's value to be setted. |
| control | {Widget} - Widget annot which trigger this event. |