Skip to content

word section add

zmworm edited this page May 1, 2026 · 53 revisions

Word: Section - add

Add a section break controlling page layout for a range of content.

Parent: /body

Properties

Property Default Description
type nextPage continuous, evenPage, oddPage, nextPage
pageWidth/width - Page width (integer, twips)
pageHeight/height - Page height (integer, twips)
orientation - landscape or portrait
direction / dir / bidi - rtl writes <w:bidi/> on sectPr in canonical schema order; ltr clears it
rtlGutter - bool. RTL binding-gutter flag (<w:rtlGutter/>); mirrors Set

Examples

officecli add report.docx /body --type section --prop type=continuous
officecli add report.docx /body --type section --prop type=nextPage --prop orientation=landscape

# RTL section break
officecli add report.docx /body --type section --prop type=nextPage --prop direction=rtl

Based on OfficeCLI v1.0.68

Clone this wiki locally