Vector kit command

print.setup

Print Setup

Sets the document's print settings: copies, artboards, media, orientation, scaling, tiling, marks, bleed, output and separations.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of print.setup
NameTypeRequiredDescription
settingsobjectno{copies: 1 (1–999), collate: true, reverse, artboards: all|range|ignore (all the art as one page), range: "1-3, 5" (1-based, with artboards: range), skipBlank (leave out artboards with no art that prints), media: letter|legal|tabloid|a3|a4|a5|b4|b5|custom, width, height (custom paper, 72–14400 pt), orientation: portrait|landscape|portraitFlipped|landscapeFlipped, autoRotate: true (turn the paper to each artboard; orientation ignored), transverse (the page a quarter turn on the paper), printLayers: visiblePrintable|visible|all (template layers never print), placement: {origin: topLeft|top|topRight|left|center|right|bottomLeft|bottom|bottomRight (the point of the printed area, the artboard with its bleed and marks, on the same point of the imageable area), x, y (pt, right and down)}, scaling: none|fit|custom|tileFull|tileImageable, scale: {width: 100, height: 100} (% with custom and tiling), overlap: 0 (pt between tiles), tileRange: "" (1-based tiles across then down; empty: all), margin: 0 (pt the device can't print around the paper: the imageable area is inside it), marks: {trim, registration, colorBars, pageInfo, kind: roman|japanese, weight: 0.25, offset: 6} (as file.exportPdf, at the paper's scale; page information adds the tile and the ink), bleed: {useDocument: true (the document's bleed, file.setup), top, bottom, left, right} (pt), output: {mode: composite|separations (one grey page per ink that prints), emulsion: up|down (down mirrors), image: positive|negative, spotsToProcess, inks: [{name: "Cyan"|…|a spot swatch, print: true, frequency (lpi, default 60), angle (default C 15, M 75, Y 0, K 45, spots 45)}]}, graphics: {autoFlatness: true, flatness: 1 (0.2–100), fonts: none|subset|complete}, color: {intent: perceptual|relativeColorimetric|saturation|absoluteColorimetric, preserveNumbers: true (CMYK colours keep their values), profile: "" (the printer profile, an RGB or CMYK one: composite PDF colours are converted to it with the intent, separations separate with a CMYK one; empty: as they are)}, advanced: {printAsBitmap (composite pages print as one image each, at the document's raster effects resolution), overprints: preserve|discard|simulate (composite output; preserve writes them to overprint (/OP), simulate prints them as Overprint Preview shows them; separations always keep them), flattenerPreset: "" (a flattener preset, built-in or saved: transparency is flattened before printing; empty: it prints live; PostScript defaults to medium)}, tileOrigin: {placed: false, x, y} (where the Print Tiling tool put the pages: print.tiling.set)}; 1–999; all the art as one page; 1-based, with artboards: range; leave out artboards with no art that prints; custom paper, 72–14400 pt; turn the paper to each artboard; orientation ignored; the page a quarter turn on the paper; template layers never print; the point of the printed area, the artboard with its bleed and marks, on the same point of the imageable area; pt, right and down; % with custom and tiling; pt between tiles; 1-based tiles across then down; empty: all; pt the device can't print around the paper: the imageable area is inside it; as file.exportPdf, at the paper's scale; page information adds the tile and the ink; the document's bleed, file.setup; pt; one grey page per ink that prints; down mirrors; lpi, default 60; default C 15, M 75, Y 0, K 45, spots 45; 0.2–100; CMYK colours keep their values; the printer profile, an RGB or CMYK one: composite PDF colours are converted to it with the intent, separations separate with a CMYK one; empty: as they are; composite pages print as one image each, at the document's raster effects resolution; composite output; preserve writes them to overprint (/OP), simulate prints them as Overprint Preview shows them; separations always keep them; a flattener preset, built-in or saved: transparency is flattened before printing; empty: it prints live; PostScript defaults to medium; where the Print Tiling tool put the pages: print.tiling.set

Call through vector_run

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

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

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "settings": {
      "additionalProperties": true,
      "description": "{copies: 1 (1–999), collate: true, reverse, artboards: all|range|ignore (all the art as one page), range: \"1-3, 5\" (1-based, with artboards: range), skipBlank (leave out artboards with no art that prints), media: letter|legal|tabloid|a3|a4|a5|b4|b5|custom, width, height (custom paper, 72–14400 pt), orientation: portrait|landscape|portraitFlipped|landscapeFlipped, autoRotate: true (turn the paper to each artboard; orientation ignored), transverse (the page a quarter turn on the paper), printLayers: visiblePrintable|visible|all (template layers never print), placement: {origin: topLeft|top|topRight|left|center|right|bottomLeft|bottom|bottomRight (the point of the printed area, the artboard with its bleed and marks, on the same point of the imageable area), x, y (pt, right and down)}, scaling: none|fit|custom|tileFull|tileImageable, scale: {width: 100, height: 100} (% with custom and tiling), overlap: 0 (pt between tiles), tileRange: \"\" (1-based tiles across then down; empty: all), margin: 0 (pt the device can't print around the paper: the imageable area is inside it), marks: {trim, registration, colorBars, pageInfo, kind: roman|japanese, weight: 0.25, offset: 6} (as file.exportPdf, at the paper's scale; page information adds the tile and the ink), bleed: {useDocument: true (the document's bleed, file.setup), top, bottom, left, right} (pt), output: {mode: composite|separations (one grey page per ink that prints), emulsion: up|down (down mirrors), image: positive|negative, spotsToProcess, inks: [{name: \"Cyan\"|…|a spot swatch, print: true, frequency (lpi, default 60), angle (default C 15, M 75, Y 0, K 45, spots 45)}]}, graphics: {autoFlatness: true, flatness: 1 (0.2–100), fonts: none|subset|complete}, color: {intent: perceptual|relativeColorimetric|saturation|absoluteColorimetric, preserveNumbers: true (CMYK colours keep their values), profile: \"\" (the printer profile, an RGB or CMYK one: composite PDF colours are converted to it with the intent, separations separate with a CMYK one; empty: as they are)}, advanced: {printAsBitmap (composite pages print as one image each, at the document's raster effects resolution), overprints: preserve|discard|simulate (composite output; preserve writes them to overprint (/OP), simulate prints them as Overprint Preview shows them; separations always keep them), flattenerPreset: \"\" (a flattener preset, built-in or saved: transparency is flattened before printing; empty: it prints live; PostScript defaults to medium)}, tileOrigin: {placed: false, x, y} (where the Print Tiling tool put the pages: print.tiling.set)}; 1–999; all the art as one page; 1-based, with artboards: range; leave out artboards with no art that prints; custom paper, 72–14400 pt; turn the paper to each artboard; orientation ignored; the page a quarter turn on the paper; template layers never print; the point of the printed area, the artboard with its bleed and marks, on the same point of the imageable area; pt, right and down; % with custom and tiling; pt between tiles; 1-based tiles across then down; empty: all; pt the device can't print around the paper: the imageable area is inside it; as file.exportPdf, at the paper's scale; page information adds the tile and the ink; the document's bleed, file.setup; pt; one grey page per ink that prints; down mirrors; lpi, default 60; default C 15, M 75, Y 0, K 45, spots 45; 0.2–100; CMYK colours keep their values; the printer profile, an RGB or CMYK one: composite PDF colours are converted to it with the intent, separations separate with a CMYK one; empty: as they are; composite pages print as one image each, at the document's raster effects resolution; composite output; preserve writes them to overprint (/OP), simulate prints them as Overprint Preview shows them; separations always keep them; a flattener preset, built-in or saved: transparency is flattened before printing; empty: it prints live; PostScript defaults to medium; where the Print Tiling tool put the pages: print.tiling.set",
      "properties": {
        "advanced": {
          "additionalProperties": true,
          "description": "{printAsBitmap , overprints: preserve|discard|simulate , flattenerPreset: \"\" }",
          "properties": {
            "flattenerPreset": {
              "description": "like ",
              "type": "string"
            },
            "overprints": {
              "enum": [
                "preserve",
                "discard",
                "simulate"
              ],
              "type": "string"
            },
            "printAsBitmap": {}
          },
          "type": "object"
        },
        "artboards": {
          "enum": [
            "all",
            "range",
            "ignore"
          ],
          "type": "string"
        },
        "autoRotate": {
          "default": true,
          "type": "boolean"
        },
        "bleed": {
          "additionalProperties": true,
          "properties": {
            "bottom": {
              "type": "number"
            },
            "left": {
              "type": "number"
            },
            "right": {
              "type": "number"
            },
            "top": {
              "type": "number"
            },
            "useDocument": {
              "default": true,
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "collate": {
          "default": true,
          "type": "boolean"
        },
        "color": {
          "additionalProperties": true,
          "properties": {
            "intent": {
              "enum": [
                "perceptual",
                "relativeColorimetric",
                "saturation",
                "absoluteColorimetric"
              ],
              "type": "string"
            },
            "preserveNumbers": {
              "default": true,
              "type": "boolean"
            },
            "profile": {
              "description": "like ",
              "type": "string"
            }
          },
          "type": "object"
        },
        "copies": {
          "default": 1,
          "type": "integer"
        },
        "graphics": {
          "additionalProperties": true,
          "properties": {
            "autoFlatness": {
              "default": true,
              "type": "boolean"
            },
            "flatness": {
              "default": 1,
              "type": "integer"
            },
            "fonts": {
              "enum": [
                "none",
                "subset",
                "complete"
              ],
              "type": "string"
            }
          },
          "type": "object"
        },
        "height": {
          "type": "number"
        },
        "margin": {
          "default": 0,
          "type": "integer"
        },
        "marks": {
          "additionalProperties": true,
          "description": "{trim, registration, colorBars, pageInfo, kind: roman|japanese, weight: 0.25, offset: 6}",
          "properties": {
            "colorBars": {},
            "kind": {
              "enum": [
                "roman",
                "japanese"
              ],
              "type": "string"
            },
            "offset": {
              "default": 6,
              "type": "integer"
            },
            "pageInfo": {},
            "registration": {},
            "trim": {},
            "weight": {
              "default": 0.25,
              "type": "number"
            }
          },
          "type": "object"
        },
        "media": {
          "enum": [
            "letter",
            "legal",
            "tabloid",
            "a3",
            "a4",
            "a5",
            "b4",
            "b5",
            "custom"
          ],
          "type": "string"
        },
        "orientation": {
          "enum": [
            "portrait",
            "landscape",
            "portraitFlipped",
            "landscapeFlipped"
          ],
          "type": "string"
        },
        "output": {
          "additionalProperties": true,
          "description": "{mode: composite|separations , emulsion: up|down , image: positive|negative, spotsToProcess, inks: [{name: \"Cyan\"|…|a spot swatch, print: true, frequency , angle }]}",
          "properties": {
            "emulsion": {
              "enum": [
                "up",
                "down"
              ],
              "type": "string"
            },
            "image": {
              "enum": [
                "positive",
                "negative"
              ],
              "type": "string"
            },
            "inks": {
              "description": "[{name: \"Cyan\"|…|a spot swatch, print: true, frequency , angle }]",
              "items": {
                "additionalProperties": true,
                "properties": {
                  "angle": {
                    "type": "number"
                  },
                  "frequency": {},
                  "name": {
                    "description": "\"Cyan\"|…|a spot swatch"
                  },
                  "print": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "mode": {
              "enum": [
                "composite",
                "separations"
              ],
              "type": "string"
            },
            "spotsToProcess": {}
          },
          "type": "object"
        },
        "overlap": {
          "default": 0,
          "type": "integer"
        },
        "placement": {
          "additionalProperties": true,
          "properties": {
            "origin": {
              "enum": [
                "topLeft",
                "top",
                "topRight",
                "left",
                "center",
                "right",
                "bottomLeft",
                "bottom",
                "bottomRight"
              ],
              "type": "string"
            },
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "printLayers": {
          "enum": [
            "visiblePrintable",
            "visible",
            "all"
          ],
          "type": "string"
        },
        "range": {
          "description": "like 1-3, 5",
          "type": "string"
        },
        "reverse": {},
        "scale": {
          "additionalProperties": true,
          "properties": {
            "height": {
              "default": 100,
              "type": "integer"
            },
            "width": {
              "default": 100,
              "type": "integer"
            }
          },
          "type": "object"
        },
        "scaling": {
          "enum": [
            "none",
            "fit",
            "custom",
            "tileFull",
            "tileImageable"
          ],
          "type": "string"
        },
        "skipBlank": {},
        "tileOrigin": {
          "additionalProperties": true,
          "properties": {
            "placed": {
              "default": false,
              "type": "boolean"
            },
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "tileRange": {
          "description": "like ",
          "type": "string"
        },
        "transverse": {},
        "width": {
          "type": "number"
        }
      },
      "type": "object"
    }
  },
  "returns": "{settings} (the current ones, defaults if never set up)",
  "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.