www.gnostice.com 

AddFormItem method (TgtExPDFEngine)

TgtExPDFEngine

Top 

 

procedure AddFormItem (AField: TgtPDFFormField);

 

Description

 

Call AddFormItem to add a form field to the PDF document.

The parameter 'AField' is an object of type TgtPDFFormField or one of the classes derived from it. Currently the supported form fields are CheckBox, ComboBox, ListBox, PushButton, RadioButton and TextField.

 

Consider the following table to refer to the class to be instantiated and passed as AField  for the corresponding form field.

 

 

               

Form field required

Class to be instantiated

CheckBox

TgtPDFFormCheckBox

ComboBox

TgtPDFFormComboBox

ListBox

TgtPDFFormListBox

PushButton

TgtPDFFormPushButton

RadioButton

TgtPDFFormRadioButton

TextField

TgtPDFFormTextField

 

Note:        The annotation items added using this method need not be freed by the user.

       All the items will be freed at the end when EndDoc is called.