---
title: "redaction.apply: Apply redactions — PDF kit command — Kition"
description: "Apply the redaction marks (all, or those on pages): text, images, vectors, comments and form fields under them are removed for good and boxes are drawn in their place. A verification pass fails the operation if anything readable remains. Undoable until saved; the saved file no longer contains the content."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/redaction.apply"
---

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

# redaction.apply

**Apply redactions.** Apply the redaction marks (all, or those on pages): text, images, vectors, comments and form fields under them are removed for good and boxes are drawn in their place. A verification pass fails the operation if anything readable remains. Undoable until saved; the saved file no longer contains the content.

- 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 |
| --- | --- | --- | --- |
| `pages` | `integer[]` | no | 1-based page numbers whose marks to apply (default: all). (minItems 1) |

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "redaction.apply" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `pages`. 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": {
    "pages": {
      "description": "1-based page numbers whose marks to apply (default: all). (minItems 1)",
      "items": {
        "description": "(minimum 1)",
        "type": "integer"
      },
      "type": "array"
    }
  },
  "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).
