html_to_pdf
Generate a PDF from a public URL or raw HTML, with page size, orientation, and margin settings for invoices, reports, and printable documents.
Instructions
HTML to PDF — Render a URL or raw HTML string to PDF. Returns pdf_base64 (base64 PDF; decode to get raw bytes) and page_count. Provide url OR html, never both. Supports format (A4/Letter/Legal), landscape boolean, and margin settings (top/bottom/left/right in CSS units). Use for invoices, reports, or printable document generation. Cost: $0.0045 USDC per call. Latency p99: 3500ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||