{"uid":"cap_inmzkVK2Pdz6cJFjMDMMI","slug":"agishub-html-to-pdf-renderer-efaa384d","name":"AGISHub HTML-to-PDF Renderer","description":"Render a public URL or a raw HTML string into a PDF document, returned base64-encoded. Backed by a headless browser. Use for invoices, reports, receipts and any HTML-to-PDF need.","url":"https://api.agishub.com/paid/pdf","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public http/https URL to render to PDF. Provide this OR html."},"html":{"type":"string","description":"Raw HTML string to render to PDF. Provide this OR url."},"format":{"enum":["A4","Letter","Legal","A3","A5","Tabloid"],"type":"string","description":"Paper size (default A4)."},"landscape":{"type":"boolean","description":"Landscape orientation (default false = portrait)."}},"additionalProperties":false},"type":{"enum":["http"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__O0VUZvyx7E9gFLVfxdJ2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a public URL or raw HTML string into a PDF document returned as a base64-encoded string, powered by a headless browser.","exampleAgentPrompt":"Take this HTML invoice template I have and convert it into a PDF document — use A4 paper size in portrait orientation and give me back the base64-encoded PDF I can save to disk.","exampleUseCases":[{"title":"Generate PDF invoice from HTML","prompt":"I have an HTML string for a customer invoice — can you render it as an A4 PDF and give me the base64 output so I can attach it to an email?"},{"title":"Export public report page as PDF","prompt":"Convert this public URL https://reports.mycompany.com/q3-summary into a PDF in Letter size, landscape orientation, so I can send it to the board."},{"title":"Produce a receipt PDF for order confirmation","prompt":"Take this raw HTML receipt for order #8821 and turn it into a base64-encoded PDF on A5 paper — I need to store it in our records system."}],"resultDescription":"A JSON object containing the rendered document as a base64-encoded PDF string, suitable for decoding and saving as a .pdf file or embedding in emails and storage systems.","failureModes":["Invalid or unreachable URL causes rendering failure — headless browser cannot fetch the page","Malformed HTML string may produce a blank or partially rendered PDF","Unsupported paper format value returns a validation error","Both url and html omitted triggers a required-field validation error","Very large or complex pages may time out during headless browser rendering","Protected or paywalled URLs cannot be fetched and will return an error"],"whenToPreferThis":"Use this endpoint when you need to programmatically convert HTML content — either a live public web page URL or a raw HTML string — into a PDF document without managing your own headless browser infrastructure. It is ideal for generating invoices, receipts, reports, and other structured documents from HTML templates at $0.05 per call. Prefer it over server-side PDF libraries when you need full CSS and JavaScript rendering fidelity via a real browser engine.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:34:06.355Z","isFirstParty":false}