THPDFRectangle Record
Carries a PDF rectangle as four user-space coordinates shared by page box, bounds, and highlight APIs
Declaration
THPDFRectangle= record
Left, Top, Right, Bottom: Extended;
end;
Unit
HPDFTypes
Fields
| Field | Purpose |
|---|---|
Left | Left user-space X coordinate |
Top | Top user-space Y coordinate |
Right | Right user-space X coordinate |
Bottom | Bottom user-space Y coordinate |
Usage notes
- Records may hold either corner orientation; call
HPDFNormalizeRectbefore geometry math soLeft<RightandBottom<Top - THotPDF page box helpers fill both this record and a four-Extended parameter form, so either style works
- The viewer model normalizes highlight rectangles against this record and clamps them to the page MediaBox before storing