convert_html_to_pdf
Convert HTML or Markdown to a pixel-perfect PDF. Returns a temporary download URL (valid ~1 hour). Ideal for invoices, reports, and receipts. Pay per request with Bitcoin Lightning — no API key required.
Instructions
Convert HTML or Markdown to a pixel-perfect PDF. Returns JSON: { url } — a temporary download URL (valid ~1 hour). Great for generating invoices, reports, receipts, or formatted documents programmatically. Supports full HTML/CSS including tables, images (base64 or URL), and inline styles. For Markdown input, set format='markdown'. 50 sats per conversion. Use convert_file instead for converting existing files between formats (e.g., DOCX→PDF). Pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='convert_html_to_pdf'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | Valid payment ID (must be paid) | |
| html | Yes | HTML or Markdown content to convert | |
| format | No | Input format (default: html) | html |