PDF kit command
accessibility.listFigures
List figures
The tagged figures (Figure elements, through the role map) in document order: figure number, page, alternate text and where the figure is drawn (top-left-origin points).
- Kit
- PDF 0.1.0 (.pdf)
- Changes the document
- no
Parameters
None.
Call through pdf_run
text
pdf_run {
"path": "<file>.pdf",
"steps": [{ "command": "accessibility.listFigures" }]
}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 | |
figures | any[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"count": {
"type": "number"
},
"figures": {
"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.