set_page_size
Resize the Visio page before constructing wide diagrams to prevent shapes from being cropped out of exported PNGs. Set explicit dimensions or fit the page to existing contents.
Instructions
Resize the page. Do this BEFORE building a wide architecture diagram — the default page is US Letter (8.5 x 11 in) and export_page_png crops to the page bounds, so shapes placed beyond them are invisible.
Args: width_in / height_in: New page size in inches (e.g. 20 x 12 for a hybrid-cloud reference diagram). orientation: Print orientation; inferred from the size if omitted. fit_to_contents: True = shrink/grow the page to fit what's on it (alternative to explicit width/height).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| width_in | No | ||
| height_in | No | ||
| orientation | No | ||
| fit_to_contents | No |