GetTextBlockCharWidth

Text, Fonts, Extraction

Description

Returns the width of a particular character within the specified text block.

Syntax

Delphi

function TPDFlib.GetTextBlockCharWidth(TextBlockListID, Index, CharIndex: Integer): Double;

ActiveX

Function PDFlib::GetTextBlockCharWidth(TextBlockListID As Long, Index As Long, CharIndex As Long) As Double

DLL

double DLGetTextBlockCharWidth(int InstanceID, int TextBlockListID, int Index, int CharIndex);

Parameters

TextBlockListIDA value returned by the ExtractPageTextBlocks function The index of the text block. The first text block in the list has an index of 1.
Index
CharIndexThe index of the character to retrieve the width of. The first character has an index of 1.