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