GetTextBlockFontName

Text, Fonts, Extraction

Description

Returns the font name of the text in the specified text block.

Syntax

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);

Parameters

TextBlockListIDA value returned by the ExtractPageTextBlocks function
IndexThe index of the text block. The first text block in the list has an index of 1.

Return values

Returns the font name used by the text in the specified block. Returns an empty string when TextBlockListID does not identify a valid text block list.