{"uid":"cap_N6_76Jza7psFtFTloKGYe","slug":"resolve402-markdown-to-pdf-62c8037b","name":"Resolve402 Markdown to PDF","description":"Render Markdown into a clean PDF (headings, paragraphs, bold/italic/links, nested lists, code blocks, blockquotes, simple tables, page numbers). POST JSON { markdown, title?, paper?: \"A4\" | \"Letter\" } (max 200k characters), get application/pdf back. For hosted agents that must deliver a report, a memo or an invoice as a file. Nothing stored.","url":"https://resolve402.dev/api/markdown-to-pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"paper":{"enum":["A4","Letter"],"type":"string","description":"Page size, default A4"},"title":{"type":"string","description":"Optional document title (printed on top, set in PDF metadata; defaults to the first H1)"},"markdown":{"type":"string","description":"Markdown source (CommonMark + GFM tables), max 200,000 characters"}}},"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__g93N2qGtAXYTCElDqPof","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 Markdown text into a formatted PDF document with headings, lists, code blocks, tables, and page numbers","exampleAgentPrompt":"Can you turn this markdown report into a PDF for me — use Letter paper size and set the title to 'Q2 Sales Summary'?","exampleUseCases":[{"title":"Automated agent report delivery","prompt":"Take the analysis you just wrote and convert it into a PDF I can send to the client — use A4 paper and title it 'Market Analysis Report'."},{"title":"Invoice generation from markdown","prompt":"Here's the invoice I drafted in markdown — can you render it as a PDF with the title 'Invoice #1042' on Letter-size paper so I can attach it to the email?"},{"title":"Technical memo as PDF","prompt":"Convert this markdown memo about the API migration plan into a PDF document titled 'API Migration Memo' on A4 paper so the team can download and print it."}],"resultDescription":"A binary PDF file (application/pdf) with the markdown rendered into clean, formatted pages including headings, bold/italic text, hyperlinks, nested lists, code blocks, blockquotes, simple tables, and page numbers. No data is stored server-side.","failureModes":["Markdown exceeds 200,000 character limit — request rejected","Unsupported paper size value — validation error","Malformed or missing markdown field — 400 bad request","Complex markdown features not supported (e.g. embedded images, custom HTML) may render partially or be stripped","Service unavailable or timeout for very large documents"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to deliver a polished, printable PDF document rendered from Markdown — such as reports, memos, or invoices — without needing a full document authoring service. Ideal for stateless, pay-per-call workflows where no data should be stored. Prefer over HTML-to-PDF converters when your source is already Markdown (CommonMark + GFM), and over word processor APIs when you need lightweight, fast conversion with no persistent storage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:38:18.176Z","isFirstParty":false,"canonicalSlug":"resolve402-markdown-to-pdf-62c8037b"}