-
Notifications
You must be signed in to change notification settings - Fork 563
word header footer add
zmworm edited this page Apr 9, 2026
·
52 revisions
Add page headers and footers with support for default, first-page, and even-page variants.
Parent: / (document root)
| Property | Default | Description |
|---|---|---|
text |
(empty) | Content |
type |
default |
default, first, even
|
font, size, bold, italic, color
|
- | Formatting |
alignment |
- | Alignment |
# Add a header
officecli add report.docx / --type header --prop text="Company Name" --prop alignment=center --prop bold=true
# Add a different first-page header
officecli add report.docx / --type header --prop text="Title Page" --prop type=first
# Add a footer
officecli add report.docx / --type footer --prop text="Page Footer" --prop alignment=right --prop size=9Based on OfficeCLI v1.0.40