GetFormFieldTextSize

Form fields

Description

Retrieves the size of the text in the specified form field. A value of 0 indicates that the form field autosizes the text to fit into the available space.

Syntax

Delphi

Function TPDFlib.GetFormFieldTextSize(Index: Integer): Double;

ActiveX

Function PDFlib::GetFormFieldTextSize(Index As Long) As Double

DLL

double DLGetFormFieldTextSize(int InstanceID, int Index);

Parameters

IndexThe index of the form field to work with. The first form field has an index of 1.

Return values

Returns the text size of the specified form field in points. A result of 0 means the field autosizes its text; 0 is also returned when the field does not exist.