render_html_to_pdf
Convert HTML into a PDF via the PaperSprocket API. Returns the PDF file, its local path, and billing metadata such as page count and cost.
Instructions
Render HTML to a PDF through the PaperSprocket API. Returns the PDF as an application/pdf embedded resource (base64 blob), the local file path when the server can write it, and render metadata (render_id, page_count, charged_cents, balance_cents). Billed to the configured PaperSprocket account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML to render (non-empty). | |
| page | No |