{"uid":"cap_DK_d2Muq849lSB6OtyJIM","slug":"x402-deployer-x402-deployer-workers-dev-ebe36f2f","name":"HTML to PDF / URL to PDF Converter","description":"URL to PDF / HTML to PDF / webpage screenshot to PDF. CloudConvert capture-website. Configurable page size, orientation, margins, wait conditions. Renders JS.","url":"https://x402-deployer.x402-deployer.workers.dev/html-to-pdf","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":{"required":["url"],"properties":{"url":{"type":"string"},"margin_top":{"type":"number"},"wait_until":{"type":"string"},"page_format":{"type":"string"},"margin_bottom":{"type":"number"},"page_orientation":{"enum":["portrait","landscape"],"type":"string"},"print_background":{"type":"boolean"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"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":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.08","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.08/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a01MAj-xnK37AIEwUt_V4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a URL, raw HTML, or webpage to a PDF with configurable page size, orientation, margins, and JavaScript rendering via CloudConvert capture-website.","exampleAgentPrompt":"Convert https://example.com/report to a PDF for me — use A4 paper size, landscape orientation, and wait for the page's JavaScript to finish loading before capturing.","exampleUseCases":null,"resultDescription":"Returns a PDF file (binary) generated from the provided URL or HTML content, rendered with full JavaScript support, respecting the configured page size, orientation, and margin settings.","failureModes":["Invalid or unreachable URL returns an error response","Malformed HTML may produce a blank or broken PDF","Timeout if wait conditions are never satisfied by the target page","Unsupported page size or orientation enum value returns a validation error","Payment not included or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to render a live webpage (including JavaScript-heavy single-page apps) or raw HTML into a PDF with precise control over layout (page size, orientation, margins). It is preferable over simpler HTML-to-PDF tools when JS rendering is required, and over headless browser setups when a managed API is desired. Backed by CloudConvert capture-website for high-fidelity output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-05-19T01:22:33.225Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:11.407Z","isFirstParty":false}