Skip to content

ParagraphProperties

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

ECMA-376 Part 1 §17.3.1 — Paragraph Properties (pPr). All lengths in canonical Pt (converted from twips by the parser); all fields optional for cascade inheritance.

indentFirstLine encodes both <w:ind w:firstLine="…"/> (positive value) and <w:ind w:hanging="…"/> (stored as the negative twips, so a hanging indent of 360 twips becomes indentFirstLine = -18pt — the first line ends up 360 twips to the left of indentLeft).

readonly optional alignment?: Alignment

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


readonly optional bidi?: boolean

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

ECMA-376 §17.3.1.6 — w:bidi. Sets the paragraph’s base direction to RTL, so the BiDi paragraph embedding level is 1 and default alignment is right.


readonly optional indentFirstLine?: Pt

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


readonly optional indentLeft?: Pt

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


readonly optional indentRight?: Pt

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


readonly optional numbering?: NumberingReference

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


readonly optional outlineLevel?: number

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

ECMA-376 §17.3.1.20 — w:outlineLvl. Outline level 0–8 maps to Heading 1–9; 9 (or absent) is body text. Drives tagged-PDF heading structure (H1–H6).


readonly optional pageBreakBefore?: boolean

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

ECMA-376 Part 1 §17.3.1.21 — w:pageBreakBefore. When true, the paragraph starts on a fresh page even if there is room on the current one.


readonly optional runProperties?: RunProperties

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

The implicit default run properties for runs in this paragraph (w:pPr/w:rPr).


readonly optional spacingAfter?: Pt

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


readonly optional spacingBefore?: Pt

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


readonly optional spacingLine?: Pt

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


readonly optional spacingLineRule?: "auto" | "exact" | "atLeast"

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


readonly optional styleId?: string

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