PDF kit command
bookmark_rename
Rename a bookmark
Change a bookmark's title. Undoable.
- Kit
- PDF 0.1.0 (.pdf)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
path | integer[] | yes | The bookmark: 1-based positions from the top level, e.g. [2, 1] = the first child of the second bookmark. |
title | string | yes | (minLength 1) |
Call through pdf_run
text
pdf_run {
"path": "<file>.pdf",
"steps": [{ "command": "bookmark_rename", "params": { "path": <integer[]>, "title": <string> } }]
}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": {
"path": {
"description": "The bookmark: 1-based positions from the top level, e.g. [2, 1] = the first child of the second bookmark.",
"items": {
"description": "(minimum 1)",
"type": "integer"
},
"type": "array"
},
"title": {
"description": "(minLength 1)",
"type": "string"
}
},
"required": [
"path",
"title"
],
"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.