Vector kit command

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)
Changes the document
no

Parameters

Parameters of file.pdfSettings
NameTypeRequiredDescription
includeDocumentbooleanno
presetstringno

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

Result of file.pdfSettings
NameTypeRequiredDescription
changedany[]no
presetsstring[]no
settingsobjectno
warningsany[]no
Result JSON Schema
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/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.