locate_text
Find exact text strings in a PDF and get page coordinates for each occurrence. Use for names, addresses, or account references that pattern matching misses, then pass the returned regions to redact.
Instructions
Locate exact text strings in a PDF and return each occurrence's page and coordinates (in PDF points). Use this for what pattern-matching can't catch — names, addresses, account references — by doing the entity recognition YOURSELF and passing the literal strings here; the engine resolves where they sit so you never guess geometry from a rendered page. Feed the returned regions straight to redact_pdf. Case-insensitive; a string the PDF splits across text operators may not match as one run. Each hit returns a masked preview, not the raw text. Nothing is uploaded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes | literal strings to locate | |
| pdfPath | Yes | absolute path to the PDF to search |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| regions | Yes |