Skip to content

command add ppt

zmworm edited this page Apr 4, 2026 · 54 revisions

add - PowerPoint (.pptx)

Addable element types in PowerPoint documents.

Element Types

Type Aliases Parent Reference
slide - / PPT-Slide-Add
shape textbox /slide[N] PPT-Shape-Add
picture image, img /slide[N] PPT-Picture-Add
chart - /slide[N] PPT-Chart-Add
table - /slide[N] PPT-Table-Add
row tr /slide[N]/table[M] PPT-Table-Add
connector connection, line /slide[N] PPT-Connector-Add
group - /slide[N] PPT-Group-Add
video audio, media /slide[N] PPT-Video-Add
equation formula, math /slide[N] PPT-Equation-Add
notes - /slide[N] PPT-Notes-Add
paragraph para /slide[N]/shape[M] PPT-Paragraph-Add
run - /slide[N]/shape[M], /slide[N]/shape[M]/paragraph[P] PPT-Run-Add
zoom slidezoom, slide-zoom /slide[N] PPT-Zoom-Add

Text-anchored Insert (--after find:X / --before find:X)

# Insert run after matched text
officecli add slides.pptx '/slide[1]/shape[1]' --type run --after find:天气 --prop text=(晴)

# Insert before
officecli add slides.pptx '/slide[1]/shape[1]' --type run --before find:天气 --prop text=【

# Regex positioning
officecli add slides.pptx '/slide[1]/shape[1]' --type run --after 'find:r"\d+"' --prop text=!

PPT only supports inline element insertion (run type) with find: anchoring.

See Also


Based on OfficeCLI v1.0.33

Clone this wiki locally