Slide kit command
slide.size
Slide Size
Sets the slide size by preset or width/height in points, scaling content to maximize or ensure fit.
- Kit
- Slide 0.1.0 (.kslide and .pptx)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
h | number (≥ 72, ≤ 4032) | no | points; w and h instead of preset |
preset | string | no | widescreen, standard, a4, letter, … |
scale | "maximize" | "ensureFit" | "none" | no | |
w | number (≥ 72, ≤ 4032) | no | points |
Call through slide_run
text
slide_run {
"path": "<file>.pptx",
"steps": [{ "command": "slide.size" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: h, preset, scale, w. slide_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"h": {
"description": "points; w and h instead of preset",
"maximum": 4032,
"minimum": 72,
"type": "number"
},
"preset": {
"description": "widescreen, standard, a4, letter, …",
"type": "string"
},
"scale": {
"enum": [
"maximize",
"ensureFit",
"none"
],
"type": "string"
},
"w": {
"description": "points",
"maximum": 4032,
"minimum": 72,
"type": "number"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (slide_commands through @kition/[email protected], built from KitionAI/kition-slide@7ef3d11). As data: commands.jsonl.