SetFormFieldRichTextString
表单字段
描述
使用给定键设置指定表单字段的富文本(RV)或默认样式(DS)字符串。写入任一键都需要 PDF 1.5,除非存在较低版本锁定,否则库会自动提高有效保存版本
语法
Delphi
Function TPDFlib.SetFormFieldRichTextString(Index: Integer; Const Key, NewValue: WideString): Integer;
ActiveX
Function PDFlib::SetFormFieldRichTextString(Index As Long, Key As String, NewValue As String) As Long
DLL
int DLSetFormFieldRichTextString(int InstanceID, int Index, const wchar_t * Key, const wchar_t * NewValue);
参数
| Index | 所需表单字段索引,第一个表单字段索引为 1 |
|---|---|
| Key | RV 设置富文本字符串。DS 设置默认样式字符串 |
| NewValue | 指定键的新值。所需格式由 PDF 富文本字符串和字段字典规则定义 |
返回值
| 0 | 找不到指定的表单字段 |
|---|---|
| 1 | 表单字段的指定值设置成功 |