THPDFLayoutBounds Record
Axis-aligned rectangle in layout coordinate space used for placing, drawing and tracking streaming layout elements
Declaration
THPDFLayoutBounds= record
X: Single;
Y: Single;
Width: Single;
Height: Single;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
X / Y | Origin coordinates of the rectangle in the layout space handed to the placement API |
Width / Height | Extents of the rectangle; overlap checks regard a zero width or height as empty |
Usage notes
- Supply it to
THotPDF.PlaceLayoutElement, which works out the actual draw rectangle from the element's measurement and reports any overflow separately - Once layout diagnostics are enabled, placed rectangles are tracked in these terms and compared pairwise for overlap detection
- The diagnostics carry the same X, Y, Width and Height values inline, so overlays, tracking and reports share one geometry