{"uid":"cap_js8APviqOMNsyVidYEj-q","slug":"x402-aurelianflo-com-html-to-pdf-renderer-3a38313f","name":"x402.aurelianflo.com HTML-to-PDF Renderer","description":"Convert HTML (including CSS and tables) into a premium, max-fidelity PDF using a high-precision rendering engine.","url":"https://x402.aurelianflo.com/api/tools/pdf/render-html","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"css":{"type":"string"},"html":{"type":"string"},"page":{"type":"object","properties":{"format":{"type":"string"},"margin":{"type":"object","additionalProperties":true},"landscape":{"type":"boolean"}},"additionalProperties":true},"title":{"type":"string"},"footerHtml":{"type":"string"},"headerHtml":{"type":"string"},"printBackground":{"type":"boolean"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.18","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.18/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.18","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.18","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9qFCzi_q8qMuLl2fBaS3F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.18","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts HTML (with CSS and tables) into a high-fidelity PDF using a premium rendering engine, supporting custom headers, footers, page format, and background printing.","exampleAgentPrompt":"Take this HTML invoice template — including the embedded CSS table styles — and render it as a high-fidelity PDF in A4 format with portrait orientation, 20px margins all around, a header that says 'ACME Corp Invoice', a footer with the page number, and make sure the background colors are printed.","exampleUseCases":null,"resultDescription":"A rendered PDF file (binary/base64) produced from the provided HTML and CSS, with the specified page layout, header, footer, and background settings applied at maximum fidelity.","failureModes":["Invalid or malformed HTML causing render failure","Unsupported CSS features that the rendering engine cannot handle","Missing required html field resulting in a 400 error","Payment not fulfilled resulting in a 402 Payment Required response","Overly complex HTML/CSS causing timeout","Invalid page format string causing a 422 error"],"whenToPreferThis":"Choose this endpoint when you need maximum-fidelity PDF rendering of HTML with complex CSS, multi-column tables, custom headers/footers, or background colors — especially when layout accuracy matters more than speed or cost. Prefer over generic PDF converters when the HTML has advanced CSS or table styling that cheap renderers distort.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:39:12.372Z","isFirstParty":false}