Extract text from a PDF by URL
pdfExtract text from a PDF by URL. Downloads a public PDF (up to 15 MB) and returns its text page by page with title, author and page count. Scanned PDFs without a text layer return little text. Cached 1 h. Price $0.020 per call (x402: USDC on Base or Solana).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | No | Alternative to the X-Payment-Tx header | |
| url | Yes | http(s) URL of the PDF | |
| max_chars | No | ||
| max_pages | No |