SetFormFieldRichTextStringA
表单字段
描述
尾随的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅提供 Unicode 形式。行为与 SetFormFieldRichTextString 相同,字符串参数使用当前 SetAnsiMode 代码页进行解释
使用给定键设置指定表单字段的富文本(RV)或默认样式(DS)字符串。写入任一键都需要 PDF 1.5,除非存在较低版本锁定,否则库会自动提高有效保存版本
语法
Delphi
Function DLSetFormFieldRichTextStringA(InstanceID, Index: Integer; Key, NewValue: PAnsiChar): Integer;
DLL
int DLSetFormFieldRichTextStringA(int InstanceID, int Index, const char* Key, const char* NewValue);
参数
| Index | 所需表单字段索引,第一个表单字段索引为 1 |
|---|---|
| Key | RV 设置富文本字符串。DS 设置默认样式字符串 |
| NewValue | 指定键的新值。所需格式由 PDF 富文本字符串和字段字典规则定义 |
返回值
| 0 | 找不到指定的表单字段 |
|---|---|
| 1 | 表单字段的指定值设置成功 |