PDF kit command

object.list

List editable objects

List existing paragraphs, Image/Form artwork and added content once, with source kind/index references, displayed rectangles and document generation. Indexes change when content changes; use generation in object.move to reject stale references.

Kit
PDF 0.1.0 (.pdf)
Changes the document
no

Parameters

Parameters of object.list
NameTypeRequiredDescription
pageintegeryes(minimum 1)

Call through pdf_run

text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "object.list", "params": { "page": <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

Result of object.list
NameTypeRequiredDescription
countnumberno
generationnumberno
objectsany[]no
pagenumberno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "count": {
      "type": "number"
    },
    "generation": {
      "type": "number"
    },
    "objects": {
      "type": "array"
    },
    "page": {
      "type": "number"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "page": {
      "description": "(minimum 1)",
      "type": "integer"
    }
  },
  "required": [
    "page"
  ],
  "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.