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