DeleteFormField
Form fields
Description
Deletes the specified form field. If the field is deleted successfully the field index of subsequent form fields will be decreased by 1.
Deleting a parent field also removes its descendant fields and their widgets from every affected page; unrelated sibling fields and annotations remain available
Syntax
Delphi
Function TPDFlib.DeleteFormField(Index: Integer): Integer;
ActiveX
Function PDFlib::DeleteFormField(Index As Long) As Long
DLL
int DLDeleteFormField(int InstanceID, int Index);
Parameters
| Index | The index of the form field to delete |
|---|
Return values
| 0 | The form field was not found |
|---|---|
| 1 | The form field was deleted successfully |