{"uid":"cap_gu0lfCInUcEF6jGaEsa3D","slug":"html-url-to-pdf-renderer-72889b55","name":"HTML/URL to PDF Renderer","description":"Render a URL or raw HTML to a PDF file with a headless browser. Returns the PDF bytes. Use for invoices, reports, receipts, archiving pages. Also callable as GET with the same fields as query parameters.","url":"https://agents.torbrooknews.com/v1/pdf?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"},"html":{"type":"string","description":"Raw HTML instead of url"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J1GY7bmRNFvNVvZxnyVbp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a URL or raw HTML string to a PDF file using a headless browser and returns the PDF bytes","exampleAgentPrompt":"Can you render this invoice HTML into a PDF file for me? Here's the raw HTML: <html><body><h1>Invoice #1042</h1><p>Amount due: $500</p></body></html>","exampleUseCases":[{"title":"Invoice PDF generation from HTML","prompt":"Take this HTML invoice template I have and convert it into a PDF file I can send to my client — here's the HTML: <html><body><h1>Invoice #2024-88</h1><p>Total: $1,200</p></body></html>"},{"title":"Archive a news article as PDF","prompt":"Save this article as a PDF for me: https://torbrooknews.com/articles/breaking-story-2024"},{"title":"Export a web report to PDF","prompt":"I have a report page at https://dashboard.myapp.com/reports/q3-summary — can you render it as a PDF so I can share it with my team?"}],"resultDescription":"Returns raw PDF bytes representing the rendered document. The PDF faithfully captures the full visual layout of the provided URL or HTML as rendered by a headless browser, suitable for saving, emailing, or displaying as a file attachment.","failureModes":["Invalid or unreachable URL returns an error or empty response","Malformed HTML may produce a blank or partial PDF","Neither url nor html provided results in a missing-parameter error","Very large pages or complex CSS may cause rendering timeouts","Pages requiring authentication or behind paywalls will not render correctly"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate a PDF from a URL or raw HTML — ideal for invoices, receipts, reports, or archiving web content. Prefer it over screenshot services when a selectable, printable document is required rather than a raster image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:46:50.962Z","isFirstParty":false,"canonicalSlug":"html-url-to-pdf-renderer-72889b55"}