add_page_numbers
Add page numbers to Word document headers or footers, with optional 'Page N of M' format and automatic backup before saving.
Instructions
Add page numbers (PAGE field) to the header or footer; x_of_y renders 'Page N of M'. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| prefix | No | ||
| x_of_y | No | ||
| section | No | ||
| position | No | footer | |
| start_at | No | ||
| alignment | No | center | |
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||