---
title: "accessibility.fix: Fix an accessibility problem — PDF kit command — Kition"
description: "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."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/accessibility.fix"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/pdf/commands/accessibility.fix](https://developer.kition.ai/docs/kits/pdf/commands/accessibility.fix)

# 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); reference: [PDF kit commands](https://developer.kition.ai/docs/kits/pdf.md)
- 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/pdf-darwin-arm64@0.1.0 and the kit itself (pdf_commands through @kition/cli@0.1.1, built from KitionAI/kition-pdf@b0d2725).
