Skip to content

powerpoint reference

zmworm edited this page Mar 18, 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
Connector via shape index add
Group /slide[N]/group add
Video / Audio /slide[N]/video[M] add, set
Equation /slide[N]/equation add
Notes /slide[N]/notes add

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.6

Clone this wiki locally