read_pdf
Extract text from PDFs, including scanned pages via OCR, without screenshotting each page. Specify page ranges to read only what you need.
Instructions
Read a PDF as text, scanned ones included — far cheaper than screenshotting page by page.
Args:
path: Path to the PDF, e.g. "~/Downloads/MATH117-L3-F26-Fong.pdf".
pages: Which pages, e.g. "1-5", "3", "2,4,7". Omit for the whole file.
ocr: Read scanned pages with OCR when they have no text layer (slower, ~3s a page).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| path | Yes | ||
| pages | No |