Skip to content

RelativeSize

Defined in: src/core/document-model/types.ts:1306

wp14:sizeRelH / wp14:sizeRelV — the drawing’s size as a PERCENTAGE of the page or the margins rather than the extent beside it. Word 2010 writes it in the wp14 namespace, with the extent as the fallback for readers that do not know it.

readonly optional heightFrom?: "page" | "margin" | "topMargin" | "bottomMargin"

Defined in: src/core/document-model/types.ts:1316

§20.4.3.7 ST_SizeRelFromV — the vertical twin.


readonly optional heightPct?: number

Defined in: src/core/document-model/types.ts:1314


readonly optional widthFrom?: "page" | "margin" | "leftMargin" | "rightMargin"

Defined in: src/core/document-model/types.ts:1313

§20.4.3.6 ST_SizeRelFromH — what the percentage is OF. margin is the text area; the rest are the bands around it, and a drawing sized against one is a fraction of that band alone (tdf123324 asks for 150% of the top margin).


readonly optional widthPct?: number

Defined in: src/core/document-model/types.ts:1307