PDF kit command
bookmark.list
List bookmarks
The bookmarks in outline order, one page at a time: each with its path (1-based, as the other bookmark tools take it), title, target page and open state, and its children on the same page. next is the offset of the following page, or null at the end. Bookmarks nested deeper than 33 levels are not listed.
- Kit
- PDF 0.1.0 (.pdf)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Bookmarks in the page (default 100) (maximum 1000, minimum 1) |
offset | integer | no | Where the page starts, counted from 0 (the previous page's next) (minimum 0) |
Call through pdf_run
text
pdf_run {
"path": "<file>.pdf",
"steps": [{ "command": "bookmark.list" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: limit, offset. pdf_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
bookmarks | any[] | no | |
next | any | no | |
truncated | boolean | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"bookmarks": {
"type": "array"
},
"next": {},
"truncated": {
"type": "boolean"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"limit": {
"description": "Bookmarks in the page (default 100) (maximum 1000, minimum 1)",
"type": "integer"
},
"offset": {
"description": "Where the page starts, counted from 0 (the previous page's next) (minimum 0)",
"type": "integer"
}
},
"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.