PDF kit command

page.insertBlank

Insert a blank page

Insert a blank page so it becomes page `at`. Size defaults to the neighbouring page. Undoable.

Kit
PDF 0.1.0 (.pdf)
Changes the document
yes

Parameters

Parameters of page.insertBlank
NameTypeRequiredDescription
atintegeryes(minimum 1)
heightnumbernoPoints.
widthnumbernoPoints.

Call through pdf_run

text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "page.insertBlank", "params": { "at": <integer> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: height, width. pdf_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": {
    "at": {
      "description": "(minimum 1)",
      "type": "integer"
    },
    "height": {
      "description": "Points.",
      "type": "number"
    },
    "width": {
      "description": "Points.",
      "type": "number"
    }
  },
  "required": [
    "at"
  ],
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (pdf_commands through @kition/[email protected], built from KitionAI/kition-pdf@b0d2725). As data: commands.jsonl.