{"uid":"cap_jNZyNmu9pRyt--Df4HCOq","slug":"quant-agent-shop-markdown-to-pdf-07d26c3e","name":"Quant Agent Shop: Markdown to PDF","description":"Markdown to PDF. Send Markdown (headings, lists, tables, links, bold, italic); returns an A4 PDF as base64 in JSON. Use to hand a person a printable report or invoice-style page. Images and raw HTML are not rendered. Up to 50,000 characters. Typical response under 1 s. Failed calls are not charged.","url":"https://quantagentshop.com/v1/pdf/from-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["markdown"],"properties":{"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Title","default":null,"description":"Document title; defaults to the first # heading."},"markdown":{"type":"string","title":"Markdown","maxLength":50000,"minLength":1,"description":"Markdown text: headings, lists, tables, links, bold and italic."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"bytes":1840,"filename":"weekly-report.pdf","created_at":"2026-10-22T09:00:00+00:00","pdf_base64":"JVBERi0xLjMK...","content_type":"application/pdf"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7q41eQZDnrAb_YpUkHQvo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a Markdown string into an A4 PDF document and returns it as a base64-encoded string in JSON","exampleAgentPrompt":"Can you convert this markdown report into a PDF for me? Title it 'Q3 Sales Summary' and use this content: '# Q3 Sales Summary\\n\\n## Overview\\nRevenue was up 12% YoY...\\n\\n| Region | Sales |\\n|---|---|\\n| North | $1.2M |'","exampleUseCases":[{"title":"Weekly status report PDF","prompt":"Take this markdown and turn it into a PDF I can send to my manager — title it 'Weekly Status Report' and include the content: '# Weekly Status Report\\n\\n- Completed onboarding flow\\n- Fixed auth bug\\n- Started API integration\\n\\n## Next Week\\n- Launch beta'"},{"title":"Client invoice as PDF","prompt":"I need a printable invoice PDF from this markdown: '# Invoice #1042\\n\\n**Client:** Acme Corp\\n**Date:** 2024-07-15\\n\\n| Item | Qty | Price |\\n|---|---|---|\\n| Consulting | 10h | $1,500 |\\n\\n**Total: $1,500' — title it 'Invoice #1042'"},{"title":"Technical documentation handout","prompt":"Convert this markdown doc into a PDF for distribution at the workshop — title it 'API Quick Reference' and the content is: '# API Quick Reference\\n\\n## Authentication\\nUse Bearer tokens in the Authorization header.\\n\\n## Endpoints\\n- `GET /users` — list users\\n- `POST /orders` — create order'"}],"resultDescription":"A JSON object containing: the PDF as a base64-encoded string (pdf_base64), the suggested filename, file size in bytes, content type (application/pdf), and creation timestamp. The base64 string can be decoded to obtain a printable A4 PDF file.","failureModes":["Markdown exceeding 50,000 characters returns a validation error","Empty or missing markdown field returns a 400-level error","Raw HTML or image tags in markdown are silently ignored or not rendered","Malformed markdown may produce an unexpected but valid PDF layout","Service unavailability returns a non-200 response; failed calls are not charged"],"whenToPreferThis":"Choose this endpoint when you have Markdown source content (headings, lists, tables, bold, italic, links) and need a clean A4 PDF without rendering images or arbitrary HTML. It is faster and cheaper than a full web-page-to-PDF conversion, and ideal for generating reports, invoices, or documentation handouts programmatically. Prefer the sibling 'Web page to PDF' endpoint if you need to render a live URL with full HTML/CSS/images.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:44:33.250Z","isFirstParty":false,"canonicalSlug":"quant-agent-shop-markdown-to-pdf-07d26c3e"}