shape_rectangle_create
Creates a rectangle on a specified InDesign page at given x/y coordinates and width/height, with optional fill, stroke, and corner radius.
Instructions
Create a rectangle on a page
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| fillColor | No | ||
| pageIndex | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| strokeColor | No | ||
| cornerRadius | No | ||
| strokeWeight | No |