set_section_properties
Modify document section properties including page width, height, orientation, and margins using DXA units. Target specific sections by paragraph ID.
Instructions
Modify section properties (page size, orientation, margins).
Args: para_id: paraId of paragraph with section break. Empty = body section. width: Page width in DXA (twips). 12240 = 8.5 inches. height: Page height in DXA. 15840 = 11 inches. orientation: "portrait" or "landscape". Empty = unchanged. margin_top: Top margin in DXA. 0 = unchanged. margin_bottom: Bottom margin in DXA. 0 = unchanged. margin_left: Left margin in DXA. 0 = unchanged. margin_right: Right margin in DXA. 0 = unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| para_id | No | ||
| width | No | ||
| height | No | ||
| orientation | No | ||
| margin_top | No | ||
| margin_bottom | No | ||
| margin_left | No | ||
| margin_right | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |