{"uid":"cap_Uv3uNdY5G-n_Ipe-XqZE9","slug":"printwren-web-page-html-to-pdf-converter-b68b0a4e","name":"Printwren: Web Page & HTML to PDF Converter","description":"Any web page or HTML to a clean PDF. Real Chrome printing, page numbers and all, in one call Try it free in one click, no sign-up.","url":"https://printwren.cybermax-tools.workers.dev/x402/api/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","description":"Public web page (or POST \"html\" instead)"},"media":{"enum":["print","screen"],"type":"string","default":"print","description":"\"print\" (default, like Ctrl+P) or \"screen\" (looks like the browser)"},"format":{"enum":["A4","Letter","Legal","A3","A5","Tabloid"],"type":"string","default":"A4","description":"Paper size: A4, Letter, Legal, A3, A5, Tabloid (default A4)"},"margin":{"type":"string","default":"10mm","description":"CSS length for all sides (default 10mm)"},"landscape":{"type":"boolean","default":false,"description":"Wide pages"},"pageNumbers":{"type":"boolean","default":false,"description":"Footer with \"page / total\""},"printBackground":{"type":"boolean","default":true,"description":"Include background colours and images"},"includePdfBase64":{"type":"boolean","default":false,"description":"Return the PDF bytes as base64 (up to 3 MB)"}}}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y91moxQGW_r6QGtGNSjqA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts any public web page URL or raw HTML into a clean PDF using real Chrome rendering, with options for paper size, margins, orientation, page numbers, and background graphics.","exampleAgentPrompt":"Can you convert https://example.com/report into a clean PDF using print media mode, A4 paper, with page numbers enabled and a 15mm margin?","exampleUseCases":[{"title":"Invoice PDF from billing page","prompt":"Take the URL https://mybilling.app/invoices/INV-2024-005 and convert it to a PDF in Letter size with page numbers on, using print media mode — I need to send it to a client."},{"title":"Legal document archive from HTML","prompt":"I have this HTML string for a contract — can you render it as a PDF in Legal paper size, landscape orientation, with background colors included and a 20mm margin?"},{"title":"Screenshot-style webpage export","prompt":"Export https://myportfolio.dev as a PDF using screen media mode so it looks exactly like the browser, A4 size, no page numbers, with all background images included."}],"resultDescription":"Returns a JSON object. When includePdfBase64 is false (default), returns metadata about the generated PDF (e.g. page count, size). When includePdfBase64 is true, includes the PDF file encoded as a base64 string (up to 3 MB) that can be decoded and saved as a .pdf file.","failureModes":["URL is not publicly accessible or returns a non-200 status — PDF generation fails","HTML or URL content is too large or complex — timeout or truncation","base64 output exceeds 3 MB limit — response may be truncated or rejected","Invalid paper format or margin value — validation error returned","Network issues reaching the target URL — empty or error response","JavaScript-heavy pages may not fully render if scripts time out"],"whenToPreferThis":"Choose this endpoint when you need a faithful, Chrome-rendered PDF from a live URL or raw HTML — especially when print fidelity matters (backgrounds, fonts, layout). It supports granular paper size and margin control, page numbers, and both print and screen media modes. Prefer it over screenshot services when the output must be a true PDF (not an image), and over headless browser setups when you want a managed, pay-per-call solution without infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:33:37.522Z","isFirstParty":false,"canonicalSlug":"printwren-web-page-html-to-pdf-converter-b68b0a4e"}