THotPDF.SetFormFieldTooltip Method

为当前文档中已创建的 AcroForm 字段设置 PDF /TU 用户提示

声明

procedure SetFormFieldTooltip(const FieldName, Value: AnsiString);

单元

HPDFDoc

参数

名称用途
FieldName要在生成的字段列表中查找的现有 AcroForm 字段名
Value作为 /TU 用户提示写入字段字典的文本

使用说明

Example

HPDF.BeginDoc;
HPDF.AddPage;
HPDF.CurrentPage.AddTextField('CustomerName', '', Rect(50, 100, 250, 120));
HPDF.SetFormFieldTooltip('CustomerName', 'Customer name');
HPDF.EndDoc;

Related API