LayoutPage
Not exported by name. You get it from the API.
| Name | Type | Description |
|---|---|---|
anchors? | LayoutAnchor[] | Floating pictures, absolutely positioned (no flow impact). |
background? | string | Full-page fill (CSS hex) painted under everything; left out under pageColor: "print". |
bodyBottom? | number | Lowest y a body line may reach, before notes take their share. Metadata only. |
columnBands? | LayoutColumnBand[] | Multi-column bands, top to bottom. Each band spans from its top to the next band’s top (the last one to bottom). Present only when some band lays more than one column, so text consumers can order content column by column instead of interleaving by y. |
height | number | |
index | number | |
lines | LayoutLine[] | |
margin | { bottom: number; left: number; right: number; top: number } | |
pageBorder? | LayoutPageBorder | Section page border, painted behind or in front of document ink. |
printedNumber? | string | The string a PAGE field on this page paints (pgNumType format and restarts applied). Provenance for field refresh; painters never read it. |
rects? | LayoutRect[] | Paragraph shading / border rects, drawn beneath lines and tables. |
review? | LayoutReviewLayer | Word-like print-markup composition, painted outside the base page flow. |
sectionIndex? | number | Index of the section (document order, body-level sectPr last) whose page grid laid this page. Provenance for section-scoped geometry queries; painters never read it. |
tables | LayoutTable[] | |
width | number |
LayoutPageBorder
Page border emitted from the owning section’s w:pgBorders.
Not exported by name. You get it from the API.
type LayoutPageBorder = LayoutRect & { zOrder: "front" | "back" }