SetFormFieldValueByTitle
表单字段
描述
设置具有指定标题的所有表单字段值,调用 SetNeedAppearances(1) 后将为表单字段生成外观流
语法
Delphi
Function TPDFlib.SetFormFieldValueByTitle(Const Title, NewValue: WideString): Integer;
ActiveX
Function PDFlib::SetFormFieldValueByTitle(Title As String, NewValue As String) As Long
DLL
int DLSetFormFieldValueByTitle(int InstanceID, const wchar_t * Title, const wchar_t * NewValue);
参数
| Title | 要设置的表单字段标题 |
|---|---|
| NewValue | 表单字段的新值。对于多行文本字段,可使用 Chr(13) 或 Chr(13) + Chr(10) 强制在行之间换行 |
返回值
| 0 | 找不到表单字段 |
|---|---|
| 1 | 已成功设置表单字段值 |