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 co-ordinate of the bounding box. |
| Top | The resulting top co-ordinate of the bounding box. |
| Right | The resulting right co-ordinate of the bounding box. |
| Bottom | The resulting bottom co-ordinate of the bounding box. |