Design kit command
file.exportFramesPdf
Export frames to PDF
Exports every top-level frame of a page, in reading order, as one PDF with optional bleed, marks and CMYK.
- Kit
- Design 0.1.0 (.kdesign)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bleed | number | string | no | |
bleedMarks | boolean | no | |
cmyk | boolean | no | |
cropMarks | boolean | no | |
page | integer | no | page id, default the current page |
Call through design_run
text
design_run {
"path": "<file>.kdesign",
"steps": [{ "command": "file.exportFramesPdf" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: bleed, bleedMarks, cmyk, cropMarks, page. design_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
data | string | no | |
format | string | no | |
pages | number | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"data": {
"type": "string"
},
"format": {
"type": "string"
},
"pages": {
"type": "number"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"bleed": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"bleedMarks": {
"type": "boolean"
},
"cmyk": {
"type": "boolean"
},
"cropMarks": {
"type": "boolean"
},
"page": {
"description": "page id, default the current page",
"type": "integer",
"x-khp-types": [
"Node"
]
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.