url_to_pdf
Render a web page to PDF. Requires an API key purchased at https://url-pdf.hammbox.com/buy. If this MCP request carries a valid "x-api-key" or "Authorization: Bearer" header, it renders directly and returns a 1-hour download URL; otherwise it returns purchase guidance.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of the page to render. Required. | |
| scale | No | Scale, 0.1-2. Default 1. | |
| format | No | Paper size. Default A4. | |
| margin | No | Margin shorthand like "10mm" — or an object {top,right,bottom,left}. Optional. | |
| waitMs | No | Extra settle time after load, 0-10000ms. Few dynamics pages need this. | |
| landscape | No | Landscape orientation. Default false. | |
| waitUntil | No | Puppeteer navigation wait condition. Default networkidle2. | |
| printBackground | No | Print background graphics. Default true. | |
| waitForSelector | No | Optional CSS selector to wait for before rendering. | |
| preferCssPageSize | No | Honor the page CSS @page size instead of the format option. |