PDF kit command
content.list
List added content
Text and images added with page.addText/page_add_image (or Edit a PDF ▸ Add content), per page with a 1-based index, rect (points from the top-left of the page), and text style.
- Kit
- PDF 0.1.0 (.pdf)
- Changes the document
- no
Parameters
None.
Call through pdf_run
text
pdf_run {
"path": "<file>.pdf",
"steps": [{ "command": "content.list" }]
}The required parameters, with placeholders for their types: not a tested example. pdf_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
count | number | no | |
items | any[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"count": {
"type": "number"
},
"items": {
"type": "array"
}
},
"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.