---
title: "file.exportFramesPdf: Export frames to PDF — Design kit command — Kition"
description: "Exports every top-level frame of a page, in reading order, as one PDF with optional bleed, marks and CMYK."
canonical: "https://developer.kition.ai/docs/kits/design/commands/file.exportFramesPdf"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/design/commands/file.exportFramesPdf](https://developer.kition.ai/docs/kits/design/commands/file.exportFramesPdf)

# file.exportFramesPdf

**Export frames to PDF.** Exports every top-level frame of a page, in reading order, as one PDF with optional bleed, marks and CMYK.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bleed` | `number \| string` | no |  |
| `bleedMarks` | `boolean` | no |  |
| `cmyk` | `boolean` | no |  |
| `cropMarks` | `boolean` | no |  |
| `page` | `integer` | no | page id, default the current page |

## Call through design_run

```text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "file.exportFramesPdf" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `bleed`, `bleedMarks`, `cmyk`, `cropMarks`, `page`. design_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `string` | no |  |
| `format` | `string` | no |  |
| `pages` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "data": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "pages": {
      "type": "number"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "bleed": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    },
    "bleedMarks": {
      "type": "boolean"
    },
    "cmyk": {
      "type": "boolean"
    },
    "cropMarks": {
      "type": "boolean"
    },
    "page": {
      "description": "page id, default the current page",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/design-darwin-arm64@0.1.0 and the kit itself (design_commands through @kition/cli@0.1.1, built from KitionAI/kition-design@abc7e16).
