{"uid":"cap_KUDLA-IiC0ZHW1HtRbx0E","slug":"pdf-ocr-text-extraction-39450ebf","name":"PDF OCR Text Extraction","description":"Extract printed and handwritten text from a supplied PDF using OCR.","url":"https://manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io/api/v1/content/pdf-to-text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"pages":{"type":"string","pattern":"^[1-9]\\d*(?:-[1-9]\\d*)?(?:,[1-9]\\d*(?:-[1-9]\\d*)?)*$","maxLength":512,"minLength":1},"locale":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$","maxLength":32,"minLength":2},"pdfBase64":{"type":"string","pattern":"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","maxLength":13981016,"minLength":8}}},"responseSchema":{"type":"json","example":{"text":"Example document text.","pageCount":1,"processedPages":[1],"textCharacters":22}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u666Kgic5j5t4eFQF3Nsu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts printed and handwritten text from a PDF document using OCR, supporting page selection and locale hints.","exampleAgentPrompt":"Can you extract all the text from this PDF I'm sending you — it's a scanned contract with both printed and handwritten annotations, pages 1-5, and it's in English.","exampleUseCases":[{"title":"Digitize scanned legal contracts","prompt":"I have a scanned PDF of a signed lease agreement with handwritten notes in the margins — can you run OCR on pages 1 through 8 and give me all the text so I can search it?"},{"title":"Extract data from invoice PDFs","prompt":"Pull all the text out of this PDF invoice I'm attaching — it's a single-page scanned document and I need the line items and totals recognized accurately."},{"title":"Transcribe handwritten form submissions","prompt":"I've got a batch of handwritten patient intake forms scanned into a PDF — please OCR the whole document and return the extracted text so I can process the responses."}],"resultDescription":"Returns the recognized text content extracted from the specified pages of the PDF, covering both printed typography and handwritten content, preserving the textual content found via OCR.","failureModes":["Invalid base64 encoding causes rejection","Page range references pages beyond the document length","PDF is password-protected or encrypted and unreadable","Extremely low-quality scan results in poor OCR accuracy","pdfBase64 exceeds the ~10MB size limit","Unsupported locale code causes processing error"],"whenToPreferThis":"Choose this endpoint when you need raw OCR text from a PDF, especially scanned or image-based PDFs containing handwriting. Prefer it over the structured PDF extractor when you need plain text output without layout metadata, and over the PDF-to-Markdown converter when document formatting is irrelevant.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:43:09.944Z","isFirstParty":false}