DAGetTextBlockFontName

Text, Fonts, Extraction, Direct access functionality

Description

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

Syntax

Delphi

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

ActiveX

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

DLL

const wchar_t* DLDAGetTextBlockFontName(int InstanceID, int TextBlockListID, int Index);
const char* DLDAGetTextBlockFontNameA(int InstanceID, int TextBlockListID, int Index);

Parameters

TextBlockListIDA value returned by the DAExtractPageTextBlocks or ExtractFilePageTextBlocks functions
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 block. Returns an empty string when the text block list ID is invalid.