sempdf v1.9.1Interfaces
Interface: BlockPosition
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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
height? | readonly | number | Box 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? | readonly | number | One-based page to draw on. Defaults to 1; pages are created as needed. | src/document-json.ts:103 |
width? | readonly | number | Box width in points. Required for rect and image blocks. | src/document-json.ts:99 |
x | readonly | number | Left edge, in PDF points. | src/document-json.ts:95 |
y | readonly | number | Baseline/top depending on the block; in PDF points under origin. | src/document-json.ts:97 |