GetTextBlockFontName

文本, 字体, 提取

描述

返回指定文本块中文本的字体名称

语法

Delphi

Function TPDFlib.GetTextBlockFontName(TextBlockListID, Index: Integer): WideString;

ActiveX

Function PDFlib::GetTextBlockFontName(TextBlockListID As Long, Index As Long) As String

DLL

const wchar_t* DLGetTextBlockFontName(int InstanceID, int TextBlockListID, int Index);
const char* DLGetTextBlockFontNameA(int InstanceID, int TextBlockListID, int Index);

参数

TextBlockListID由 ExtractPageTextBlocks 函数返回的值
Index文本块的索引。列表中的第一个文本块索引为 1

返回值

返回指定块中文本使用的字体名称。TextBlockListID 不是有效文本块列表的标识时返回空字符串。