redact_by_coordinates
Redact specific areas of a loaded PDF by providing page number and bounding box coordinates. Customize fill color and overlay text, then save the in-memory changes to disk.
Instructions
Redact specific areas of a loaded PDF document by coordinates.
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) | |
| redactions | Yes | List of redaction areas, each with: - page: Page number (0-indexed) - bbox: Bounding box as [x0, y0, x1, y1] - text: Optional overlay text for this specific redaction | |
| document_id | Yes | Identifier of the loaded document | |
| overlay_text | No | Default text to display over redacted areas (can be overridden per redaction) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |