---
title: "slide.size: Slide Size — Slide kit command — Kition"
description: "Sets the slide size by preset or width/height in points, scaling content to maximize or ensure fit."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/slide.size"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/slide/commands/slide.size](https://developer.kition.ai/docs/kits/slide/commands/slide.size)

# 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); reference: [Slide kit commands](https://developer.kition.ai/docs/kits/slide.md)
- 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/slide-darwin-arm64@0.1.0 and the kit itself (slide_commands through @kition/cli@0.1.1, built from KitionAI/kition-slide@7ef3d11).
