{"uid":"cap_g3A8twAPEWVwxSQl6tlE2","slug":"pdf-to-text-converter-bf617cdd","name":"PDF to Text Converter","description":"一个人的思考、创作与成长记录。关于生活、技术、商业和一切有趣的事。","url":"https://leoshi-blog.vercel.app/api/tools/pdf2text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"https URL of the PDF"},"pdf_base64":{"type":"string","description":"Base64-encoded PDF bytes"}}},"responseSchema":{"type":"json","example":{"text":"First line\nSecond line","pages":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2kch-GCka0Uukhp5p8KbX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts plain text content from a PDF file and returns it along with the page count","exampleAgentPrompt":"Can you extract all the text from this PDF document I have and tell me how many pages it is?","exampleUseCases":[{"title":"Research paper text extraction","prompt":"I have a research paper in PDF format — can you pull all the text out of it so I can search through the content and quote from it?"},{"title":"Contract review text parsing","prompt":"Extract the full text from this legal contract PDF so I can analyze the clauses and key terms without having to open the file manually."},{"title":"Scanned report digitization","prompt":"Can you convert this PDF report into plain text and let me know how many pages it has? I need to process the content programmatically."}],"resultDescription":"A JSON object containing the full extracted text from the PDF as a string with newline-separated lines, plus an integer indicating the total number of pages in the document.","failureModes":["Invalid or corrupted PDF file returns an error","Password-protected PDFs may fail to extract text","Image-only (scanned) PDFs without OCR layer return empty or minimal text","Large PDFs may time out or exceed processing limits","Malformed PDF URL or unreadable binary input causes parsing failure"],"whenToPreferThis":"Choose this endpoint when you need to quickly extract plain text from a PDF document at low cost ($0.02 per call) without setting up your own PDF parsing infrastructure. It is ideal for agents processing documents, contracts, reports, or research papers where the goal is to get readable text content and page count programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:37:03.512Z","isFirstParty":false}