BlockQuadToRect

Text, Fonts, Extraction

Description

Reduces an 8-double bounding quad (4 points, X/Y interleaved as returned by GetTextBlockBound) to an axis-aligned rectangle.

Syntax

Delphi

Procedure TPDFlib.BlockQuadToRect(TextBlockListID, Index: Integer; Var Left, Top, Right, Bottom: Double);

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.
LeftThe resulting left co-ordinate of the bounding box.
TopThe resulting top co-ordinate of the bounding box.
RightThe resulting right co-ordinate of the bounding box.
BottomThe resulting bottom co-ordinate of the bounding box.