SetFormFieldRichTextString

表單欄位

描述

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

傳回值

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