redact_text_by_search
Redact all occurrences of specified text in a loaded PDF. Modify in-memory with customizable fill and overlay text, then save_pdf to apply.
Instructions
Redact all occurrences of specified text strings in a loaded PDF document.
The document must be loaded first using load_pdf. Modifications are made in-memory. Use save_pdf to write the changes to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill_color | No | RGB color for redaction box (0-1 range). Default is black (0,0,0) | |
| text_color | No | RGB color for overlay text (0-1 range). Default is white (1,1,1) | |
| document_id | Yes | Identifier of the loaded document | |
| overlay_text | No | Optional text to display over redacted area, use this to explain what has been redacted here | |
| search_strings | Yes | List of strings to search for and redact |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |