Skip to content

ppt paragraph add

zmworm edited this page Apr 29, 2026 · 50 revisions

PowerPoint: Paragraph - Add

Add a paragraph to an existing shape's text body.

Type: paragraph / para

Parent Path: /slide[N]/shape[M]

Properties

Property Default Description
text (empty) Text content
align - left, center, right, justify
indent - First-line indent (EMU or units)
marginLeft / marL - Left margin (EMU or units)
marginRight / marR - Right margin (EMU or units)
list / listStyle - bullet, dash, arrow, check, star, numbered, alpha, roman, none
font - Font family
size - Font size (pt)
bold false Bold text
italic false Italic text
color - Font color (hex RGB or theme)
spacing - Character spacing (points)
baseline - super, sub, none, or percentage
level 0 List indent level (0–8, OOXML a:pPr/@lvl)
lineSpacing / linespacing - Line spacing: 1.5x, 150%, 18pt, 0.5cm, or bare number
spaceBefore / spacebefore - Space before paragraph (pt or unit-qualified)
spaceAfter / spaceafter - Space after paragraph (pt or unit-qualified)

Examples

# Add a simple paragraph
officecli add slides.pptx /slide[1]/shape[1] --type paragraph --prop text="New paragraph"

# Add a centered paragraph with styling
officecli add slides.pptx /slide[1]/shape[1] --type para --prop text="Centered Text" --prop align=center --prop bold=true --prop size=18

# Add a bulleted paragraph with indent
officecli add slides.pptx /slide[1]/shape[1] --type paragraph --prop text="Bullet item" --prop list=bullet --prop indent=457200 --prop marginLeft=914400

# Add a paragraph with custom font and spacing
officecli add slides.pptx /slide[1]/shape[1] --type paragraph --prop text="Spaced text" --prop font="Arial" --prop size=14 --prop spacing=2 --prop color=4472C4

Based on OfficeCLI v1.0.64

Clone this wiki locally