PDF kit command

page.move

Move pages

Move pages so the first of them lands at position `to` (1-based, counted before the move). Undoable.

Kit
PDF 0.1.0 (.pdf)
Changes the document
yes

Parameters

Parameters of page.move
NameTypeRequiredDescription
pagesinteger[]yes1-based page numbers to move. (minItems 1)
tointegeryes(minimum 1)

Call through pdf_run

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

The required parameters, with placeholders for their types: not a tested example. 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": {
    "pages": {
      "description": "1-based page numbers to move. (minItems 1)",
      "items": {
        "description": "(minimum 1)",
        "type": "integer"
      },
      "type": "array"
    },
    "to": {
      "description": "(minimum 1)",
      "type": "integer"
    }
  },
  "required": [
    "pages",
    "to"
  ],
  "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.