{"uid":"cap_JvZrd58Qs3ZTkTHLEALgb","slug":"tanod-web-html-to-pdf-converter-3964aab4","name":"Tanod Web HTML-to-PDF Converter","description":"Web tools: search, page to Markdown or screenshot, company profile and jobs, sitemaps, RDAP, IP.","url":"https://web.tanod.dev/v1/pdf/html-to-pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"description":"Public http(s) URL of the page to print."},"paper":{"enum":["a4","letter","legal","a3","a5","tabloid"],"type":"string","default":"a4","description":"Paper size: a4 (default), letter, legal, a3, a5 or tabloid."},"scale":{"type":"number","default":1,"maximum":2,"minimum":0.1,"description":"Print scale of the page content (0.1-2.0, default 1.0)."},"output":{"enum":["base64","url"],"type":"string","default":"base64","description":"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."},"wait_ms":{"type":"integer","default":500,"maximum":5000,"minimum":0,"description":"Extra settle time after the load event."},"landscape":{"type":"boolean","default":false,"description":"Landscape orientation (default false: portrait)."},"margin_mm":{"type":"object","properties":{"top":{"type":"number","default":10,"maximum":50,"minimum":0},"left":{"type":"number","default":10,"maximum":50,"minimum":0},"right":{"type":"number","default":10,"maximum":50,"minimum":0},"bottom":{"type":"number","default":10,"maximum":50,"minimum":0}},"description":"Margins in mm (0-50 each, default 10).","additionalProperties":false},"print_background":{"type":"boolean","default":true,"description":"Print background colours and images (default true)."}}},"responseSchema":{"type":"json","example":{"url":"https://example.com","file":{"name":"page.pdf","bytes":27621,"pages":1,"data_base64":"JVBERi0xLjQKJdPr... (trimmed: 36,828 base64 characters in the reply)","content_type":"application/pdf"},"pages":1,"paper":"a4","landscape":false,"operation":"html-to-pdf","output_bytes":27621,"untrusted_content":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0045","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.0045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CHs_LO7sQ2mgiNoR73lUn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0045","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a public web page URL to a PDF file, returning it as base64 data or a 24-hour download link, with configurable paper size, orientation, margins, and render settings.","exampleAgentPrompt":"Can you convert https://example.com/report to a PDF using A4 paper in portrait orientation, wait 1000ms for it to fully load, and give me a download link instead of the raw base64 data?","exampleUseCases":[{"title":"Archive a news article as PDF","prompt":"Save this news article as a PDF for me — https://www.bbc.com/news/technology-12345678 — use A4 paper and give me a download link so it doesn't clog up the conversation."},{"title":"Export invoice page for accounting","prompt":"Convert this invoice URL to a PDF on letter-size paper in portrait mode with 15mm margins all around so I can send it to my accountant: https://billing.myservice.com/invoices/INV-2024-001"},{"title":"Generate printable report from dashboard","prompt":"Turn https://dashboard.myapp.com/reports/q4-summary into a landscape PDF on A3 paper with background colours enabled — wait 2 seconds for the charts to finish loading, then return the base64 PDF."}],"resultDescription":"Returns a JSON object containing the operation type, paper size, orientation, page count, output byte size, and either a base64-encoded PDF (data_base64 field) or a temporary download URL valid for 24 hours (with expiry timestamp, byte count, content type, and SHA256 hash for verification). An 'untrusted_content' flag is also returned indicating the rendered content came from an external source.","failureModes":["Non-public or firewall-protected URLs will fail to load","Invalid or malformed URLs return an error","Pages requiring authentication will render login screens instead of content","Very large or complex pages may time out or produce oversized responses","Invalid paper size enum values return validation errors","Scale values outside 0.1–2.0 range are rejected","margin_mm values above 50 are rejected"],"whenToPreferThis":"Choose this endpoint when you need to produce an actual PDF file (not just a Markdown or screenshot) from a public web URL, especially when paper size, orientation, and print margins matter — such as for archiving, printing, or document delivery. Prefer the 'url' output mode for large pages to avoid bloating the agent context with base64 data. Use the wait_ms parameter when the target page uses JavaScript-heavy rendering (e.g. charts, dashboards).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:45:35.466Z","isFirstParty":false,"canonicalSlug":"tanod-web-html-to-pdf-converter-3964aab4"}