{"uid":"cap_futbyIhSsAbLO5dMSepyR","slug":"agenttools-pdf-to-text-extractor-78156b23","name":"AgentTools PDF to Text Extractor","description":"Fetch a PDF (by URL, SSRF-guarded) or accept it as base64 and extract all readable text with page count. Deterministic parsing — no language model, so nothing is invented. Text-based PDFs only; scanned images need OCR (not included). Use this when an agent needs to extract readable text from any PDF — agents can't read PDFs.","url":"https://agentstoolshub.com/api/v1/dev/pdf-to-text?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"Or provide base64 instead"},"base64":{"type":"string","description":"Base64 content"},"maxChars":{"type":"number","description":"Max text length"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KIv1VzHYWCtDUlZHxWTco","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a PDF by URL (SSRF-guarded) or accepts base64-encoded PDF content and extracts all readable text with page count using deterministic parsing.","exampleAgentPrompt":"Can you extract all the text from this PDF for me? Here's the URL: https://example.com/report.pdf — just give me the full readable content and how many pages it has.","exampleUseCases":[{"title":"Research paper text extraction","prompt":"I need to read the contents of this academic paper but I can't open PDFs directly — can you fetch it from https://arxiv.org/pdf/2301.00001.pdf and pull out all the text so I can analyze it?"},{"title":"Contract review from base64 PDF","prompt":"I have a legal contract encoded as base64 — can you extract all the readable text from it so I can review the clauses? I'll send you the base64 string."},{"title":"Invoice data retrieval","prompt":"There's an invoice PDF at https://invoices.mycompany.com/inv-2024-0042.pdf — can you grab all the text from it, capped at 5000 characters, so I can pull out the line items and totals?"}],"resultDescription":"Returns all readable text extracted from the PDF along with the total page count. Output is deterministically parsed — no language model inference, so the text is exactly what appears in the PDF. Works only on text-based PDFs; scanned image PDFs are not supported.","failureModes":["URL points to a non-PDF resource — parsing fails or returns empty text","PDF is scanned/image-based with no embedded text — returns empty or minimal text (OCR not included)","URL is blocked by SSRF guard (private/internal IP ranges) — request rejected","base64 input is malformed or not a valid PDF — parsing error returned","PDF is encrypted or password-protected — text extraction fails","maxChars too low — truncates output significantly"],"whenToPreferThis":"Use this endpoint whenever an AI agent needs to read the content of a PDF document — either from a public URL or as base64 content — and the PDF contains embedded text (not scanned images). It is deterministic and does not hallucinate content, making it reliable for legal, financial, or research documents. Prefer this over OCR-based or LLM-based solutions when you need exact text reproduction with no inference.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:46:39.153Z","isFirstParty":false,"canonicalSlug":"agenttools-pdf-to-text-extractor-78156b23"}