Skip to main content

Interface: BlockPosition

Absolute placement for a block. When a block carries a position, it is drawn at these PDF-point coordinates instead of flowing. Geometry and page routing live here; the block's own fields carry its content and style.

Properties

PropertyModifierTypeDescription
height?readonlynumberBox height in points. Required for rect and image blocks.
origin?readonly"bottom-left" | "top-left"Coordinate origin. Defaults to "bottom-left".
page?readonlynumberOne-based page to draw on. Defaults to 1; pages are created as needed.
width?readonlynumberBox width in points. Required for rect and image blocks.
xreadonlynumberLeft edge, in PDF points.
yreadonlynumberBaseline/top depending on the block; in PDF points under origin.