-
Notifications
You must be signed in to change notification settings - Fork 465
ppt paragraph
zmworm edited this page Apr 29, 2026
·
49 revisions
Text paragraph within a shape.
Path: /slide[N]/shape[M]/paragraph[P]
- add - Add a paragraph to a shape
- set - Modify paragraph properties
- get - Get paragraph attributes
| Property | Accepted Values | Description |
|---|---|---|
link |
URL | Hyperlink (applies to all runs) |
align |
left, center, right, justify
|
Alignment |
lineSpacing |
pt or % | Line spacing |
spaceBefore |
pt | Space before paragraph |
spaceAfter |
pt | Space after paragraph |
indent |
EMU or units | First-line indent |
marginLeft / marL
|
EMU or units | Left margin |
marginRight / marR
|
EMU or units | Right margin |
| Key | Type | Description |
|---|---|---|
lineSpacing |
number | Line spacing (pt or %) |
spaceBefore |
number | Space before paragraph (pt) |
spaceAfter |
number | Space after paragraph (pt) |
alignment |
string | Text alignment |
indent |
integer | First-line indent (EMU) |
marginLeft |
integer | Left margin (EMU) |
marginRight |
integer | Right margin (EMU) |
# Set hyperlink on paragraph (applies to all runs)
officecli set pres.pptx /slide[1]/shape[1]/paragraph[1] --prop link=https://example.com
# Set alignment
officecli set pres.pptx /slide[1]/shape[1]/paragraph[1] --prop align=center
# Get paragraph properties
officecli get pres.pptx /slide[1]/shape[1]/paragraph[1]Based on OfficeCLI v1.0.64