Skip to content

powerpoint reference

zmworm edited this page Mar 23, 2026 · 53 revisions

PowerPoint (.pptx) Reference

Complete reference for OfficeCLI operations on PowerPoint documents.

Elements

Element Path Operations
Presentation / set
Slide /slide[N] add, set
Shape /slide[N]/shape[M] add, set
Placeholder /slide[N]/placeholder[X] set (same as Shape)
Picture /slide[N]/picture[M] add, set
Table /slide[N]/table[M] add, set
Chart /slide[N]/chart[M] add, set
Theme /theme get, set
Morph Check /morph-check get
Connector via shape index add, set, get
Group /slide[N]/group add, set, get
Video / Audio /slide[N]/video[M] add, set
Equation /slide[N]/equation add
Paragraph /slide[N]/shape[M]/paragraph[P] add, set, get
Run /slide[N]/shape[M]/paragraph[P]/run[R] add, set, get
Notes /slide[N]/notes add
Zoom /slide[N]/zoom[M] add, set, get, query, remove

View Modes

# Get element tree
officecli get slides.pptx /slide[1] --depth 2

# Get raw properties
officecli get slides.pptx /slide[1]/shape[1]

Raw XML Parts

Part Path Description
/ or /presentation Presentation XML
/slide[N] Slide XML
/slideMaster[N] Master XML
/slideLayout[N] Layout XML
/noteSlide[N] Notes XML

XPath prefixes: p (PresentationML), a (DrawingML), r (Relationships)

officecli raw slides.pptx /slide[1]
officecli raw slides.pptx /slideMaster[1]

Based on OfficeCLI v1.0.18

Clone this wiki locally