pdf_convert_html
Convert HTML files to styled PDFs using CSS presets, page size, orientation, and custom CSS rules for controlled document output.
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": "pdf_convert_html"
}
}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) |