set_page_layout
Set page size, margins, and orientation for a Word document using presets (A4, LETTER, NARROW) or custom values in millimeters.
Instructions
Set page size, margins, and orientation. Use presets (A4, LETTER, NARROW, etc.) or custom values in millimeters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .docx file | |
| page_size_preset | No | Page size preset: A3, A4, A5, B4, B5, LETTER, LEGAL | |
| orientation | No | Page orientation | |
| width_mm | No | Custom page width in millimeters (overrides preset) | |
| height_mm | No | Custom page height in millimeters (overrides preset) | |
| margin_preset | No | Margin preset: NORMAL, NARROW, WIDE, JP_COURT_25, JP_COURT_30_20 | |
| top_mm | No | Top margin in mm | |
| right_mm | No | Right margin in mm | |
| bottom_mm | No | Bottom margin in mm | |
| left_mm | No | Left margin in mm | |
| header_mm | No | Header distance in mm | |
| footer_mm | No | Footer distance in mm | |
| gutter_mm | No | Gutter margin in mm |