SetFormFieldRichTextStringA

表單欄位

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 SetFormFieldRichTextString 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

以指定的鍵設定指定表單欄位的 Rich Text(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。
KeyRV 設定 Rich Text 字串。DS 設定預設樣式字串。
NewValue指定鍵的新值。必要格式依 PDF Rich Text 字串與欄位字典規則而定。

傳回值

0找不到指定的表單欄位
1指定表單欄位的值設定成功