{"uid":"cap_aZz5ptwspSTe-iG14Wcrw","slug":"boring-api-convert-markdown-to-pdf-d110212d","name":"boring-api · convert: Markdown to PDF","description":"Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.","url":"https://convert.boring-api.com/markdown-to-pdf","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"format":{"enum":["A4","Letter","Legal"],"type":"string"},"content":{"type":"string"},"landscape":{"type":"boolean"}}},"responseSchema":{"type":"object"},"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_cgc9sGrAucc46xkVLHoaf","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":"Converts Markdown text content to a PDF document using Chromium headless rendering, with optional landscape orientation","exampleAgentPrompt":"Convert this markdown content to a PDF for me — render it in landscape orientation: '# My Report\\n\\nThis is a summary of Q3 results...'","exampleUseCases":null,"resultDescription":"A JSON object containing the generated PDF as a base64-encoded binary string, ready to be decoded and saved as a .pdf file","failureModes":["Invalid or missing 'content' field returns an error","Malformed markdown may produce unexpected PDF layout","Unsupported 'format' value may return a format error","Large document content may time out or be rejected","Binary decode failures if base64 handling is incorrect on client side"],"whenToPreferThis":"Choose this endpoint when you need to programmatically convert Markdown content into a PDF document — especially useful for generating reports, documentation, or printable exports from Markdown source. Supports landscape mode for wide tables or presentations. Costs $0.005 USDC per call via x402 micropayment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:33:58.565Z","isFirstParty":false}