pdf_text_extract
Fetch a PDF from a URL and extract its text content. Returns clean plain text, handling compressed and encrypted PDFs.
Instructions
Fetch a PDF from a URL and extract its text content. Handles FlateDecode-compressed streams and RC4-encrypted PDFs that open with an empty password. Returns clean plain text. Returns an error if the URL is unreachable, the response is not a PDF, or the PDF is password-protected with a non-empty password. Has no side effects. Works on text-based PDFs (Word, LaTeX, web-generated); does NOT perform OCR on scanned/image-only PDFs. Use instead of loading raw PDF bytes into your context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the PDF to fetch (http/https). Must be a PDF file. | |
| maxChars | No | Max characters to return (default 20000, max 100000). |