Skip to content

word break add

goworm edited this page Jun 26, 2026 · 51 revisions

Word: Break - add

Insert page breaks, column breaks, and text-wrapping breaks.

Type: pagebreak/break, also columnbreak

Parent: /body/p[N] or /body

Properties

Property Default Description
type page Break type: page, column, textwrapping/line

Get / Set on an existing break: the canonical property key is breakType (alias breaktype), values page, column, textWrapping, line. add additionally accepts type as a parallel synonym (shown above). Address an existing break by its run path, e.g. set report.docx /body/p[3]/r[2] --prop breakType=column.

Examples

# Insert a page break
officecli add report.docx /body/p[3] --type pagebreak

# Insert a page break at body level (creates paragraph with break)
officecli add report.docx /body --type break --prop type=page

# Insert a column break
officecli add report.docx /body/p[5] --type columnbreak

# Insert a column break using type property
officecli add report.docx /body/p[5] --type break --prop type=column

# Insert a text-wrapping (line) break
officecli add report.docx /body/p[2] --type break --prop type=line

Based on OfficeCLI v1.0.64

Clone this wiki locally