html_to_pdf
Convert HTML files into styled PDFs with CSS presets, custom CSS, page size, and orientation options.
Instructions
Convert HTML to styled PDF
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>",
"output": "<output>"
},
"name": "html_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to input file | |
| output | Yes | Path to output PDF file | |
| preset | No | CSS preset (github, elegant, minimal, branded, compact) | |
| page_size | No | Page size format (e.g. A4, Letter) | |
| custom_css | No | Custom CSS rules to apply | |
| orientation | No | Page orientation (portrait or landscape) |