extract_pdf_text
Extract text from a PDF as UTF-8 to read or summarize it. Works when the PDF has a text layer; run OCR first on scanned files.
Instructions
Return the text of a PDF as UTF-8, so it can be read or summarized. Fast and exact when the PDF already has a text layer. A scanned PDF has none — run ocr_pdf on it first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF. | |
| output_path | No | Absolute path to write the result to. Defaults to the input file with a "-papyrio.txt" suffix. |