# Extract text from a PDF URL Send the link to a public PDF and get the text of the pages you ask for, one entry per page, without downloading or parsing the file yourself. ## When an agent wants this - Read a PDF your agent was given as a link - Take pages 10 to 15 of a long report with firstPage and pages - Check a PDF's page count, title and author before reading it ## PDF to text, PDF text extraction: extract the text of a PDF document from a URL, page by page PDF to text, PDF text extraction: extract the text of a PDF document from a URL, page by page. $0.005 per successful call; failed calls are never charged. Extract the text of a public PDF (up to 10 MB) from its URL, page by page, with title, author and page count. Choose the first page, how many pages (up to 200) and maxChars. arXiv abstract links work. If a site blocks our fetch, the Internet Archive's dated copy is read and the answer says so. Scanned, encrypted and non-PDF files fail uncharged. Use to read papers, invoices, reports and manuals into an agent. Inputs: url (required): Absolute public http(s) URL of the PDF; firstPage: First page to read (default 1); pages: How many pages to read (1-200, default 20); maxChars: Maximum characters of text returned across all pages (1000-200000, default 50000). Not in the free calls over HTTP; pay from the first call. With prepaid credits this tool costs $0.002 a call: $1 by card pays for 500 calls, with no account and no subscription. With a card key from https://agent-data-tools.revmesh2074.workers.dev/credits, in a header or, when your client can only fetch a URL, in the URL: curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/pdf/text?url=https%3A%2F%2Fbitcoin.org%2Fbitcoin.pdf" curl "https://agent-data-tools.revmesh2074.workers.dev/pdf/text?url=https%3A%2F%2Fbitcoin.org%2Fbitcoin.pdf&api_key=adt_…" Without a key the same URL answers 402 with x402 and MPP terms, so a wallet client pays USDC per call and retries. Over MCP (https://agent-data-tools.revmesh2074.workers.dev/mcp) this tool is pdf_text. Example result: { "url": "https://bitcoin.org/bitcoin.pdf", "title": null, "author": null, "totalPages": 9, "firstPage": 1, "pagesRead": 1, "chars": 46, "truncated": true, "pages": [ { "page": 1, "chars": 46, "text": "Bitcoin: A Peer-to-Peer Electronic Cash System" } ] } Tool page: https://agent-data-tools.revmesh2074.workers.dev/tools/pdf-text ## Questions **Which pages do I get?** The first 20 by default. Set firstPage and pages (up to 200) to choose the range; totalPages in the answer says how long the file is. **What if the site blocks the download?** The Internet Archive's dated copy of the same URL is read when there is one, and the answer says so with the date of the copy. With no copy the call fails and is not charged. Docs for agents: https://agent-data-tools.revmesh2074.workers.dev/llms.txt · OpenAPI: https://agent-data-tools.revmesh2074.workers.dev/openapi.json · All guides: https://agent-data-tools.revmesh2074.workers.dev/guides