PDF kit command

comment.setStatus

Set a comment's status

Set a comment's review status (Set status), recorded as a status reply. Undoable.

Kit
PDF 0.1.0 (.pdf)
Changes the document
yes
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of comment.setStatus
NameTypeRequiredDescription
authorstringno
idstringnoThe comment's id (from comment.list).
indexintegerno1-based position on the page, as comment.list reports. (minimum 1)
pageintegernoWith `index`, instead of `id`. (minimum 1)
status"none" | "accepted" | "rejected" | "cancelled" | "completed"yes

Call through pdf_run

text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "comment.setStatus", "params": { "status": <"none" | "accepted" | "rejected" | "cancelled" | "completed"> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: author, id, index, page. 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": {
    "author": {
      "type": "string"
    },
    "id": {
      "description": "The comment's id (from comment.list).",
      "type": "string",
      "x-khp-types": [
        "Comment"
      ]
    },
    "index": {
      "description": "1-based position on the page, as comment.list reports. (minimum 1)",
      "type": "integer"
    },
    "page": {
      "description": "With `index`, instead of `id`. (minimum 1)",
      "type": "integer"
    },
    "status": {
      "enum": [
        "none",
        "accepted",
        "rejected",
        "cancelled",
        "completed"
      ],
      "type": "string"
    }
  },
  "required": [
    "status"
  ],
  "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.