---
title: "file.setup: Document Setup — Vector kit command — Kition"
description: "Sets Document Setup options: units, bleed, outline images, font substitution highlighting, transparency grid, type options and language."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/file.setup"
---

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

# file.setup

**Document Setup.** Sets Document Setup options: units, bleed, outline images, font substitution highlighting, transparency grid, type options and language.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `appearance` | `any` | no | SVG text as text or as outlines; one of several alternative parameters |
| `backgroundContents` | `string` | no | like transparent; one of several alternative parameters |
| `bleed` | `number \| number[] \| object` | no |  |
| `discardWhiteOverprint` | `boolean` | no |  |
| `exportText` | `string` | no | like editable; one of several alternative parameters |
| `flattenerPreset` | `string` | no |  |
| `gridColors` | `string[]` | no |  |
| `gridSize` | `"small" \| "medium" \| "large"` | no |  |
| `highlightSubstitutedFonts` | `boolean` | no |  |
| `highlightSubstitutedGlyphs` | `boolean` | no |  |
| `language` | `string` | no |  |
| `on` | `boolean` | no | read by the command beside its listed parameters |
| `outlineImages` | `boolean` | no | show images in Outline mode |
| `quotes` | `object` | no | beside a language: only if they differ from the current ones |
| `simulatePaper` | `boolean` | no |  |
| `smallCapsSize` | `number` | no | percent |
| `subscript` | `object` | no |  |
| `superscript` | `object` | no |  |
| `typographersQuotes` | `boolean` | no | typed straight quotes become the document's quotes |
| `units` | `string` | no |  |
| `white` | `any` | no | white: raster exports are white behind the art; one of several alternative parameters |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "file.setup" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `appearance`, `backgroundContents`, `bleed`, `discardWhiteOverprint`, `exportText`, `flattenerPreset`, `gridColors`, `gridSize`, `highlightSubstitutedFonts`, `highlightSubstitutedGlyphs`, `language`, `on`, `outlineImages`, `quotes`, `simulatePaper`, `smallCapsSize`, `subscript`, `superscript`, `typographersQuotes`, `units`, `white`. vector_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": {
    "appearance": {
      "description": "SVG text as text or as outlines; one of several alternative parameters"
    },
    "backgroundContents": {
      "description": "like transparent; one of several alternative parameters",
      "type": "string"
    },
    "bleed": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        {
          "additionalProperties": true,
          "type": "object"
        }
      ]
    },
    "discardWhiteOverprint": {
      "type": "boolean"
    },
    "exportText": {
      "description": "like editable; one of several alternative parameters",
      "type": "string"
    },
    "flattenerPreset": {
      "type": "string"
    },
    "gridColors": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "gridSize": {
      "enum": [
        "small",
        "medium",
        "large"
      ],
      "type": "string"
    },
    "highlightSubstitutedFonts": {
      "type": "boolean"
    },
    "highlightSubstitutedGlyphs": {
      "type": "boolean"
    },
    "language": {
      "type": "string"
    },
    "on": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "outlineImages": {
      "description": "show images in Outline mode",
      "type": "boolean"
    },
    "quotes": {
      "additionalProperties": true,
      "description": "beside a language: only if they differ from the current ones",
      "properties": {
        "double": {
          "description": "like “”",
          "type": "string"
        },
        "single": {
          "description": "like ‘’",
          "type": "string"
        }
      },
      "type": "object"
    },
    "simulatePaper": {
      "type": "boolean"
    },
    "smallCapsSize": {
      "description": "percent",
      "type": "number"
    },
    "subscript": {
      "additionalProperties": true,
      "properties": {
        "position": {
          "description": "percent",
          "type": "number"
        },
        "size": {
          "description": "percent",
          "type": "number"
        }
      },
      "type": "object"
    },
    "superscript": {
      "additionalProperties": true,
      "properties": {
        "position": {
          "description": "percent",
          "type": "number"
        },
        "size": {
          "description": "percent",
          "type": "number"
        }
      },
      "type": "object"
    },
    "typographersQuotes": {
      "description": "typed straight quotes become the document's quotes",
      "type": "boolean"
    },
    "units": {
      "type": "string"
    },
    "white": {
      "description": "white: raster exports are white behind the art; one of several alternative parameters"
    }
  },
  "returns": "the current setup",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
