FormAdd |
-
FormAdd( nType, cTitle, nLin, nCol, nHig, nLen, cFont ) => will create (add) a new form field into the pdf.
nType (numeric) : is the form type, valid types are:
1 Text
2 PushButton
3 CheckBox
4 RadioButton
5 Choice
6 Signature
7 Parent
cTitle (character) : Form Field Title, the identification of the form field.
nLin (numeric) : the line number (vertical position) of the form field, according to the coordinate system in use (see NewPage()).
nCol (numeric) : the column number (horizontal position) of the form field, according to the coordinate system in use (see NewPage()).
nLen (numeric) : the length (width) of the form field.
nHig (numeric) : the height of the form field.
cFont (character) : the font compound name to be used in the new field.
Examples : oPdf:FormAdd( 1, "Name", 10, 5, 50, 1, "12.Arial" ) will create a text field with the title of "Name", in line 10, column 5, with a width of 50 characters and a height of 1 line, using font Arial, with size 12.