PDF kit command

ocr.status

OCR status

Whether text recognition is available (its models are installed: release packages include them; a source build fetches them with `cargo xtask models`; KITION_PDF_MODELS overrides), where it looks for them, and the languages it reads.

Kit
PDF 0.1.0 (.pdf)
Changes the document
no

Parameters

None.

Call through pdf_run

text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "ocr.status" }]
}

The required parameters, with placeholders for their types: not a tested example. pdf_run answers the step’s result in completed[i].result.

Result

Result of ocr.status
NameTypeRequiredDescription
availablebooleanno
languagesobject[]no
search_dirsstring[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "available": {
      "type": "boolean"
    },
    "languages": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "search_dirs": {
      "items": {
        "type": "string"
      },
      "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.