apply_template
Match a Word document's styles, theme, fonts, and layout to a reference file. Optionally include page geometry; unmatched styles and content remain unchanged.
Instructions
Restyle this document to match a reference document: styles, theme, fonts, layout settings, optionally page geometry. This is also the import-styles-from-another-document tool: style definitions are remapped by name, unmatched styles preserved, content untouched. 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 | ||
| file_path | Yes | ||
| reference_path | Yes | ||
| include_page_geometry | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||