Vector kit command

print.preview

Print Preview

Answers the print layout the settings give: page count and each sheet's artboard, tile, size, orientation and scale.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of print.preview
NameTypeRequiredDescription
settingsobjectnoover the document's

Call through vector_run

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

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

Result

Result of print.preview
NameTypeRequiredDescription
inksany[]no
pagesnumberno
settingsobjectno
sheetsobject[]no
tilesany[]no
warningsany[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "inks": {
      "type": "array"
    },
    "pages": {
      "type": "number"
    },
    "settings": {
      "additionalProperties": true,
      "properties": {
        "advanced": {
          "additionalProperties": true,
          "properties": {
            "flattenerPreset": {
              "type": "string"
            },
            "overprints": {
              "type": "string"
            },
            "printAsBitmap": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "artboards": {
          "type": "string"
        },
        "autoRotate": {
          "type": "boolean"
        },
        "bleed": {
          "additionalProperties": true,
          "properties": {
            "bottom": {
              "type": "number"
            },
            "left": {
              "type": "number"
            },
            "right": {
              "type": "number"
            },
            "top": {
              "type": "number"
            },
            "useDocument": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "collate": {
          "type": "boolean"
        },
        "color": {
          "additionalProperties": true,
          "properties": {
            "intent": {
              "type": "string"
            },
            "preserveNumbers": {
              "type": "boolean"
            },
            "profile": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "copies": {
          "type": "number"
        },
        "graphics": {
          "additionalProperties": true,
          "properties": {
            "autoFlatness": {
              "type": "boolean"
            },
            "flatness": {
              "type": "number"
            },
            "fonts": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "height": {
          "type": "number"
        },
        "margin": {
          "type": "number"
        },
        "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"
        },
        "media": {
          "type": "string"
        },
        "orientation": {
          "type": "string"
        },
        "output": {
          "additionalProperties": true,
          "properties": {
            "emulsion": {
              "type": "string"
            },
            "image": {
              "type": "string"
            },
            "inks": {
              "type": "array"
            },
            "mode": {
              "type": "string"
            },
            "spotsToProcess": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "overlap": {
          "type": "number"
        },
        "placement": {
          "additionalProperties": true,
          "properties": {
            "origin": {
              "type": "string"
            },
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "printLayers": {
          "type": "string"
        },
        "range": {
          "type": "string"
        },
        "reverse": {
          "type": "boolean"
        },
        "scale": {
          "additionalProperties": true,
          "properties": {
            "height": {
              "type": "number"
            },
            "width": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "scaling": {
          "type": "string"
        },
        "skipBlank": {
          "type": "boolean"
        },
        "tileOrigin": {
          "additionalProperties": true,
          "properties": {
            "placed": {
              "type": "boolean"
            },
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "tileRange": {
          "type": "string"
        },
        "transverse": {
          "type": "boolean"
        },
        "width": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "sheets": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "area": {
            "type": "array"
          },
          "artboard": {
            "type": "number"
          },
          "height": {
            "type": "number"
          },
          "orientation": {
            "type": "string"
          },
          "scale": {
            "type": "array"
          },
          "transform": {
            "type": "array"
          },
          "trim": {
            "type": "array"
          },
          "width": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "tiles": {
      "type": "array"
    },
    "warnings": {
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "settings": {
      "additionalProperties": true,
      "description": "over the document's",
      "type": "object"
    }
  },
  "returns": "{pages (copies included), sheets: [{artboard (0-based; null with artboards ignored), tile? (1-based), ink? (separations), width, height (pt, the page), orientation, scale: [width %, height %], transform: [a, b, c, d, e, f] (document space → the page, pt, y down), area: [x0, y0, x1, y1] (the document region the page prints), trim: [x0, y0, x1, y1] (the artboard on the page)}] (one copy, in order), tiles: [{artboard, columns, rows, printed: [1-based tiles], tiles: [[x0, y0, x1, y1]…] (document space)}], inks: [{name, spot, print, frequency, angle}] (separations), warnings (art larger than the imageable area, options not applied yet…), settings} without printing",
  "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.