Skip to content

ppt shape

zmworm edited this page Apr 4, 2026 · 28 revisions

PowerPoint: Shape

Shapes and text boxes on slides.

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

Operations

  • get - Returned attributes and output format

  • add - Add shapes with text, fill, position

  • set - Modify shape properties, animation

get

officecli get slides.pptx /slide[1]/shape[1]
officecli get slides.pptx /slide[1]/shape[1] --depth 2

query

Selectors: shape, textbox, title

Attribute Description
font/font!= Font name
title Is title shape

Pseudo: :contains("text")

officecli query slides.pptx 'shape:contains("Revenue")'
officecli query slides.pptx "title"
officecli query slides.pptx "shape[font!=Calibri]"

remove

officecli remove slides.pptx /slide[1]/shape[2]

move

officecli move slides.pptx /slide[1]/shape[3] --to /slide[2]

copy

officecli add slides.pptx /slide[2] --from /slide[1]/shape[1]

Based on OfficeCLI v1.0.33

Clone this wiki locally