PDF to text
pdf_to_textRead a PDF from a URL as text, page by page, with its title, author and page count. Works on text-layer PDFs up to 25 MB and 300 pages; scanned PDFs without a text layer are refused at no charge.
$0.005 USDC per call over x402. Failed calls cost nothing. Call without payment to get a quote. The first 3 calls a day through this tool server are free (no wallet needed).
When to use: The link is a PDF (a filing, paper, contract or manual) and you need its text. Use instead: read_page for an ordinary web page. Parameters: url: absolute http(s) URL of the PDF. max_pages: read at most this many pages, 1-300, default 50. Returns: title, author, page_count, pages_read and pages[] of text in order. Scanned PDFs with no text layer are refused at no charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of a PDF. | |
| payment | No | Base64 x402 payment payload. Omit it to receive a quote; sign that and call again. | |
| max_pages | No | Read at most this many pages (default 50). |