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
| TextBlockListID | A value returned by the ExtractPageTextBlocks function. |
|---|---|
| Index | The index of the text block. The first text block in the list has an index of 1. |
| Left | The resulting left coordinate of the bounding box. |
| Top | The resulting top coordinate of the bounding box. |
| Right | The resulting right coordinate of the bounding box. |
| Bottom | The resulting bottom coordinate of the bounding box. |