PDF kit command
accessibility.fix
Fix an accessibility problem
Apply the checker's automatic fix for a rule: primary-language (value: the language, e.g. en-US), title (value: the title; default the current title or file name; also shows it in the title bar) or tab-order (every page tabs in structure order). Returns the rule's new status. Undoable.
- Kit
- PDF 0.1.0 (.pdf)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule | "primary-language" | "title" | "tab-order" | yes | |
value | string | no |
Call through pdf_run
text
pdf_run {
"path": "<file>.pdf",
"steps": [{ "command": "accessibility.fix", "params": { "rule": <"primary-language" | "title" | "tab-order"> } }]
}The required parameters, with placeholders for their types: not a tested example. Optional: value. 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": {
"rule": {
"enum": [
"primary-language",
"title",
"tab-order"
],
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"rule"
],
"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.