Skip to content

API reference / Common / Engine types / PageMargins

Interface: PageMargins ​

A section's page margins (w:pgMar, CT_PageMar), in points.

DOCX stores these in twips; converted to points at import. top/bottom may be negative (content bleeding into the margin). header/footer are the distances from the page edge to the top of the header / bottom of the footer. gutter (the extra binding margin) and mirror margins land when a real case needs them.

Properties ​

PropertyDescription
top
number
@top — top text margin.
right
number
@right — right text margin.
bottom
number
@bottom — bottom text margin.
left
number
@left — left text margin.
header
number
@header — distance from the page's top edge to the header.
footer
number
@footer — distance from the page's bottom edge to the footer.