Vector kit command

pdf.preset.save

Save PDF Preset

Creates or changes a saved PDF preset from options; answers it.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of pdf.preset.save
NameTypeRequiredDescription
descriptionstringno
namestringnodefault: a new "PDF Preset N"
newNamestringno
presetstringno

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "pdf.preset.save" }]
}

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

Result

Result of pdf.preset.save
NameTypeRequiredDescription
createdbooleanno
namestringno
settingsobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "created": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "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"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "description": {
      "type": "string"
    },
    "name": {
      "description": "default: a new \"PDF Preset N\"",
      "type": "string"
    },
    "newName": {
      "type": "string"
    },
    "preset": {
      "type": "string"
    }
  },
  "returns": "{name, created, settings}",
  "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.