apply_style
Apply a paragraph style by ID or name to a batch of paragraphs in Word docs, altering their full look. Missing Heading1-9 styles are auto-created.
Instructions
Apply a paragraph style (by id or name) to a batch of paragraphs, changing their full look; Heading1-9 are auto-created when missing. To give a paragraph an outline level WITHOUT changing its appearance use set_paragraph_format's outline_level; to promote/demote existing built-in headings use change_heading_level. 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 |
|---|---|---|---|
| style | Yes | ||
| backup | No | ||
| indices | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||