{"uid":"cap_D2TMGvhECcv5n0c3R34K-","slug":"klymax402-pdf-generator-76a30433","name":"klymax402 PDF Generator","description":"One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.","url":"https://klymax402.com/api/pdf-generator/api/generate","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"format":{"enum":["html","markdown"],"type":"string","description":"Content format: html or markdown (default: html)"},"content":{"type":"string","description":"HTML or Markdown content to convert to PDF"},"margins":{"type":"object","properties":{"top":{"type":"string","description":"Top margin (e.g. 20mm)"},"left":{"type":"string","description":"Left margin (e.g. 20mm)"},"right":{"type":"string","description":"Right margin (e.g. 20mm)"},"bottom":{"type":"string","description":"Bottom margin (e.g. 20mm)"}},"description":"Custom margins (default: 20mm all sides)"},"pageSize":{"enum":["A4","Letter","Legal"],"type":"string","description":"Page size: A4, Letter, or Legal (default: A4)"},"landscape":{"type":"boolean","description":"Landscape orientation (default: false)"}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dLMulRmQUFIJCnB8BpLye","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts HTML or Markdown content into a PDF document with configurable page size, margins, and orientation","exampleAgentPrompt":"Can you convert this HTML invoice I have into a PDF? Use A4 page size, portrait orientation, and set all margins to 15mm. Here's the HTML: <html><body><h1>Invoice #1234</h1><p>Amount due: $500</p></body></html>","exampleUseCases":[{"title":"Generate PDF invoice from HTML","prompt":"I have this HTML invoice template I want to turn into a PDF — can you render it as an A4 document with 20mm margins? Here's the HTML: <html><body><h1>Invoice #42</h1><p>Client: Acme Corp — $1,200 due</p></body></html>"},{"title":"Export Markdown report as PDF","prompt":"Please convert this markdown report into a PDF using Letter page size, landscape orientation, and 25mm margins on all sides: # Q3 Sales Report\n\nTotal revenue: $400,000\n\n- Region A: $200k\n- Region B: $200k"},{"title":"Create printable PDF from HTML email template","prompt":"Turn this HTML email template into a PDF for archiving — use A4 size, portrait, and keep the default 20mm margins: <html><body><h2>Monthly Newsletter</h2><p>Thanks for subscribing!</p></body></html>"}],"resultDescription":"Returns a JSON response containing the generated PDF, likely as a base64-encoded binary or a URL to the rendered PDF file, given the response schema is JSON with an empty example.","failureModes":["Invalid or malformed HTML/Markdown content causing rendering errors","Unsupported page size enum value returning a validation error","Margins specified in unsupported units causing parse failures","Content too large causing timeout or memory errors","Missing required content field returning a 400 bad request","Payment failure or insufficient USDC balance returning a 402 status"],"whenToPreferThis":"Choose this endpoint when you need server-side PDF generation from HTML or Markdown content without managing a headless browser or PDF library yourself. It is well-suited for agent workflows that produce invoices, reports, or documents programmatically. Prefer it over client-side solutions when the rendering environment has no browser access, or over general-purpose document converters when you specifically need HTML/Markdown input with fine-grained margin and page-size control.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:53:55.268Z","isFirstParty":false}