document_fit_page
Fit the SVG page to drawing or selected object bounds with per-side margins, without transforming objects. Control page size and whitespace precisely.
Instructions
Fits a page to native visual drawing or selected-object bounds with explicit per-side margins. This never transforms objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| path | Yes | ||
| unit | Yes | ||
| scope | Yes | ||
| margins | No | ||
| workspaceId | Yes | ||
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| bounds | Yes | ||
| revision | Yes | ||
| warnings | Yes | ||
| backupCreated | Yes | ||
| boundsFidelity | Yes |