SetFormFieldFont

表单字段

描述

设置指定表单字段必须使用的字体

语法

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);

参数

Index要操作的表单字段索引。第一个表单字段的索引为 1
FontIndex要使用的字体索引,表单中第一个字体索引为 1,使用 GetFormFontCount 确定表单中可用字体数

返回值

0字体索引错误或找不到表单字段
1字体设置成功