SetFormFieldRichTextStringA
Form fields
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetFormFieldRichTextString and string arguments are interpreted using the current SetAnsiMode code page
Sets the rich text (RV) or default style (DS) string of the specified form field using the given key. Writing either key requires PDF 1.5, and the library raises the effective save version automatically unless a lower version lock is active
Syntax
Delphi
Function DLSetFormFieldRichTextStringA(InstanceID, Index: Integer; Key, NewValue: PAnsiChar): Integer;
DLL
int DLSetFormFieldRichTextStringA(int InstanceID, int Index, const char* Key, const char* NewValue);
Parameters
| Index | The index of the required form field. The first form field has an index of 1 |
|---|---|
| Key | RV sets the rich text string. DS sets the default style string |
| NewValue | The new value for the specified key. The required format is defined by the PDF rich text string and field dictionary rules |
Return values
| 0 | Could not find the specified form field |
|---|---|
| 1 | The specified value of the form field was set successfully |