-
Notifications
You must be signed in to change notification settings - Fork 564
word header footer set
zmworm edited this page Apr 9, 2026
·
52 revisions
Modify header and footer content and formatting.
Path: /header[N], /footer[N]
| Property | Accepted Values | Description |
|---|---|---|
text |
text | Content |
font, size, bold, italic, color
|
various | Formatting |
alignment |
left, center, right, justify
|
Alignment |
highlight |
color name | Highlight color |
underline |
underline style | Underline style |
strike |
bool | Strikethrough |
- Header/footer type values use OOXML internal text (
default,first,even) instead of SDK enum names.
officecli set report.docx /header[1] --prop text="Updated Header" --prop alignment=centerBased on OfficeCLI v1.0.39