DAGetTextBlockCharWidth

Text, Fonts, Extraction, Direct access functionality

Description

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

Syntax

Delphi

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

ActiveX

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

DLL

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

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.
CharIndexThe index of the character to retrieve the width of. The first character has an index of 1.