GetTextBlockBound

Text, Fonts, Extraction

Description

Returns one of the bounds of the specified text block.

Syntax

Delphi

Function TPDFlib.GetTextBlockBound(TextBlockListID, Index, BoundIndex: Integer): Double;

ActiveX

Function PDFlib::GetTextBlockBound(TextBlockListID As Long, Index As Long, BoundIndex As Long) As Double

DLL

double DLGetTextBlockBound(int InstanceID, int TextBlockListID, int Index, int BoundIndex);

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.
BoundIndex1 = Bottom left horizontal coordinate 2 = Bottom left vertical coordinate 3 = Bottom right horizontal coordinate 4 = Bottom right vertical coordinate 5 = Top right horizontal coordinate 6 = Top right vertical coordinate 7 = Top left horizontal coordinate 8 = Top left vertical coordinate

Return values

Returns the requested bound of the text block, converted to the document's coordinate system and measurement units. Returns 0 when TextBlockListID does not reference a valid text block list.