{"uid":"cap__ZiiQBtSW4jKGAQGiAbB0","slug":"pdf-to-markdown-converter-f89f06a0","name":"PDF to Markdown Converter","description":"Convert a supplied PDF into Markdown while preserving document structure and tables.","url":"https://manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io/api/v1/content/pdf-to-markdown","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":{"markdown":"# Example\n\nDocument text.","pageCount":1,"processedPages":[1],"markdownCharacters":25}},"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_LRNAXcs8vwLVfxS5EBMz-","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":"Converts a base64-encoded PDF into structured Markdown, preserving document layout, tables, and reading order.","exampleAgentPrompt":"Can you convert this PDF (attached as base64) into Markdown for me, including pages 1-5, and make sure the tables are preserved?","exampleUseCases":[{"title":"Research paper ingestion pipeline","prompt":"I have this research paper as a base64-encoded PDF — convert pages 1-10 to Markdown so I can index the content, including any tables or structured sections."},{"title":"Legal document parsing for review","prompt":"Turn this base64 PDF of a contract into Markdown, all pages, so I can feed it into my document review tool and keep the table formatting intact."},{"title":"Report conversion for CMS publishing","prompt":"I've got a business report PDF encoded in base64 — can you convert pages 1-3 to Markdown so I can paste the content into our CMS? The locale is en-US."}],"resultDescription":"Returns a Markdown-formatted string representation of the PDF content, with document structure (headings, paragraphs, lists) and tables preserved as Markdown syntax. Page ranges can be targeted for partial document conversion.","failureModes":["Invalid or corrupt base64 PDF input returns an error","Page range pattern doesn't match expected format (e.g. non-numeric or zero-indexed) causes validation failure","PDF exceeds maximum base64 size (~10MB encoded) and is rejected","Scanned image-only PDFs with no embedded text may produce poor Markdown output","Locale string doesn't match expected pattern causing rejection"],"whenToPreferThis":"Use this endpoint when you need a clean Markdown representation of a PDF's textual and tabular content — ideal for feeding PDF documents into LLM pipelines, CMS systems, or search indexes. Prefer this over raw OCR endpoints when you want structure (headings, tables) preserved as Markdown syntax. Use the sibling HTML-to-Markdown endpoint for web content instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:33:12.222Z","isFirstParty":false}