pdf_read
Extract text from PDFs that have a text layer (born-digital). Use page ranges and character caps for selective extraction.
Instructions
Extract text from a PDF's text layer. Fast and cheap; use for born-digital PDFs.
For scanned PDFs (no text layer, check with pdf_info) use pdf_ocr or pdf_view.
Args: source: Local file path or direct http(s) URL to a PDF. pages: Page selection like '1-5' or '2,4,9-12'. Empty = whole document. max_chars: Character cap for the result (0 = default cap of 20000). preserve_layout: Keep original physical layout (tables/columns line up).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| source | Yes | ||
| max_chars | No | ||
| preserve_layout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |