---
title: "file.pdfSettings: PDF Settings — Vector kit command — Kition"
description: "Answers the PDF settings a preset gives with options applied and how they differ from it, without writing a file."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/file.pdfSettings"
---

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

# file.pdfSettings

**PDF Settings.** Answers the PDF settings a preset gives with options applied and how they differ from it, without writing a file.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `includeDocument` | `boolean` | no |  |
| `preset` | `string` | no |  |

## Call through vector_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `changed` | `any[]` | no |  |
| `presets` | `string[]` | no |  |
| `settings` | `object` | no |  |
| `warnings` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "changed": {
      "type": "array"
    },
    "presets": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "settings": {
      "additionalProperties": true,
      "properties": {
        "advanced": {
          "additionalProperties": true,
          "properties": {
            "fontSubsetPercent": {
              "type": "number"
            },
            "outlineText": {
              "type": "boolean"
            },
            "overprint": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "bleed": {
          "additionalProperties": true,
          "properties": {
            "bottom": {
              "type": "number"
            },
            "left": {
              "type": "number"
            },
            "right": {
              "type": "number"
            },
            "top": {
              "type": "number"
            },
            "useDocument": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "compatibility": {
          "type": "string"
        },
        "compression": {
          "additionalProperties": true,
          "properties": {
            "color": {
              "additionalProperties": true,
              "type": "object"
            },
            "compressText": {
              "type": "boolean"
            },
            "gray": {
              "additionalProperties": true,
              "type": "object"
            },
            "mono": {
              "additionalProperties": true,
              "type": "object"
            }
          },
          "type": "object"
        },
        "createLayers": {
          "type": "boolean"
        },
        "fastWebView": {
          "type": "boolean"
        },
        "flattenerPreset": {
          "type": "string"
        },
        "includeNonPrinting": {
          "type": "boolean"
        },
        "marks": {
          "additionalProperties": true,
          "properties": {
            "colorBars": {
              "type": "boolean"
            },
            "kind": {
              "type": "string"
            },
            "offset": {
              "type": "number"
            },
            "pageInfo": {
              "type": "boolean"
            },
            "registration": {
              "type": "boolean"
            },
            "trim": {
              "type": "boolean"
            },
            "weight": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "output": {
          "additionalProperties": true,
          "properties": {
            "conversion": {
              "type": "string"
            },
            "destination": {
              "type": "string"
            },
            "outputCondition": {
              "type": "string"
            },
            "outputConditionId": {
              "type": "string"
            },
            "outputIntent": {
              "type": "string"
            },
            "profiles": {
              "type": "string"
            },
            "registry": {
              "type": "string"
            },
            "trapped": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "preserveEditing": {
          "type": "boolean"
        },
        "security": {
          "additionalProperties": true,
          "properties": {
            "changes": {
              "type": "string"
            },
            "copy": {
              "type": "boolean"
            },
            "plaintextMetadata": {
              "type": "boolean"
            },
            "printing": {
              "type": "string"
            },
            "screenReader": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "standard": {
          "type": "string"
        },
        "thumbnails": {
          "type": "boolean"
        },
        "viewAfterSaving": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "warnings": {
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "includeDocument": {
      "default": false,
      "type": "boolean"
    },
    "preset": {
      "type": "string"
    }
  },
  "returns": "{settings (the preset with the options applied), presets: [name…], changed: [{option: \"compression.compressText\", value}] (what differs from the preset), warnings}; includeDocument also exports the active document in memory and adds its warnings (knockout groups approximated, effects left out…)",
  "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).
