GetFormFieldRichTextString

表單欄位

描述

以指定的鍵取出指定表單欄位的 Rich Text (RV) 或預設樣式 (DS) 字串。傳回值格式定義於 PDF 規格的 "Field Dictionaries" 一節

語法

Delphi

Function TPDFlib.GetFormFieldRichTextString(Index: Integer; Const Key: WideString): WideString;

ActiveX

Function PDFlib::GetFormFieldRichTextString(Index As Long, Key As String) As String

DLL

const wchar_t* DLGetFormFieldRichTextString(int InstanceID, int Index, const wchar_t* Key);
const char* DLGetFormFieldRichTextStringA(int InstanceID, int Index, const char* Key);

參數

Index目標表單欄位的索引。第一個表單欄位的索引為 1。
Key要傳回的 Key 值。"RV" = 傳回 RTF 字串,"DS" = 傳回預設樣式字串

傳回值

傳回欄位儲存在 Key 下的格式化文字字串;Index 無效或該鍵沒有值時傳回空字串