Repository navigation
ppt run add
goworm edited this page Jun 26, 2026
·
51 revisions
Add a text run to a shape or a specific paragraph within a shape.
Type: run
Parent Path: /slide[N]/shape[M] or /slide[N]/shape[M]/paragraph[P]
| Property | Default | Description |
|---|---|---|
text |
(empty) | Text content |
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) |
underline |
false |
single, double, heavy, dotted, dash, wavy, false/none
|
baseline |
- |
super, sub, none, or percentage |
superscript |
false |
Superscript text |
subscript |
false |
Subscript text |
kern |
- | Minimum font size (hundredths of a point) at which kerning applies; 0 disables, 1 enables for all sizes, e.g. 1200 = kern from 12pt up |
textOutline |
- | Text outline / glyph stroke as width:color (e.g. 0.5pt:#FF0000); none/false clears |
textOutline.color |
- | Text outline color (#RRGGBB, named, rgb(...), or scheme token) |
textOutline.width |
- | Text outline stroke width (pt/cm/in/emu) |
# Add a run to a shape (appended to last paragraph)
officecli add slides.pptx /slide[1]/shape[1] --type run --prop text="appended text" --prop bold=true
# Add a run to a specific paragraph
officecli add slides.pptx /slide[1]/shape[1]/paragraph[1] --type run --prop text="inline run" --prop color=FF0000 --prop italic=true
# Add a run with underline and spacing
officecli add slides.pptx /slide[1]/shape[1] --type run --prop text="styled" --prop underline=double --prop spacing=1.5
# Add superscript text
officecli add slides.pptx /slide[1]/shape[1]/paragraph[1] --type run --prop text="2" --prop superscript=true --prop size=8
# Add a run with wavy underline
officecli add slides.pptx /slide[1]/shape[1] --type run --prop text="marked" --prop underline=wavyBased on OfficeCLI v1.0.64