Create PDF File
create-pdf-fileCreate a PDF from the given HTML and return its hosted URL. Always runs asynchronously and returns a job id; poll "check-job-status" or provide "webhook_url" to receive a callback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML to convert to a PDF. | |
| unit | No | Unit for width/height/margins. | |
| scale | No | Render scale, between 0.1 and 2. | |
| width | No | Custom page width (requires height). | |
| footer | No | Footer HTML template. | |
| format | No | Page format. | |
| header | No | Header HTML template. | |
| height | No | Custom page height (requires width). | |
| margin_top | No | Top margin. | |
| margin_left | No | Left margin. | |
| orientation | No | Page orientation. | |
| webhook_url | No | Callback URL invoked when the async job finishes. Omit and poll "check-job-status" instead if no callback endpoint is available. | |
| margin_right | No | Right margin. | |
| margin_bottom | No | Bottom margin. |