SetFormFieldFont

Form fields

Description

Sets the font that the specified form field must use.

Syntax

Delphi

function TPDFlib.SetFormFieldFont(Index, FontIndex: Integer): Integer;

ActiveX

Function PDFlib::SetFormFieldFont(Index As Long, FontIndex As Long) As Long

DLL

int DLSetFormFieldFont(int InstanceID, int Index, int FontIndex);

Parameters

IndexThe index of the form field to work with. The first form field has an index of 1.
FontIndexThe index of the font to use. The first font in the form has an index of 1. Use GetFormFontCount to determine the number of fonts available in the form.

Return values

0Bad font index or form field not found
1Font was set successfully