---
title: "preflight.run: Preflight Document — Layout kit command — Kition"
description: "Checks the document for output problems (missing fonts and links, low-resolution images, overset text…) and answers the issues."
canonical: "https://developer.kition.ai/docs/kits/layout/commands/preflight.run"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/layout/commands/preflight.run](https://developer.kition.ai/docs/kits/layout/commands/preflight.run)

# preflight.run

**Preflight Document.** Checks the document for output problems (missing fonts and links, low-resolution images, overset text…) and answers the issues.

- Kit: Layout 0.1.0 (.klayout); reference: [Layout kit commands](https://developer.kition.ai/docs/kits/layout.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `minPpi` | `integer` | no |  |

## Call through layout_run

```text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "preflight.run" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `minPpi`. layout_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `errors` | `number` | no |  |
| `issues` | `any[]` | no |  |
| `warnings` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "errors": {
      "type": "number"
    },
    "issues": {
      "type": "array"
    },
    "warnings": {
      "type": "number"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "minPpi": {
      "default": 150,
      "type": "integer"
    }
  },
  "returns": "issues [{severity, kind, message, item?, page? (0-based), details (what the message names, by kind)}]",
  "type": "object"
}
```

Generated from the command list of @kition/layout-darwin-arm64@0.1.0 and the kit itself (layout_commands through @kition/cli@0.1.1, built from KitionAI/kition-layout@8767a18).
