sempdf
sempdf v1.9.1Interfaces

Interface: BlockPosition

sempdf v1.9.1


sempdf / BlockPosition

Defined in: src/document-json.ts:93

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

PropertyModifierTypeDescriptionDefined in
height?readonlynumberBox height in points. Required for rect and image blocks.src/document-json.ts:101
origin?readonly"top-left" | "bottom-left"Coordinate origin. Defaults to "bottom-left".src/document-json.ts:105
page?readonlynumberOne-based page to draw on. Defaults to 1; pages are created as needed.src/document-json.ts:103
width?readonlynumberBox width in points. Required for rect and image blocks.src/document-json.ts:99
xreadonlynumberLeft edge, in PDF points.src/document-json.ts:95
yreadonlynumberBaseline/top depending on the block; in PDF points under origin.src/document-json.ts:97

On this page