json_to_pdf
Convert structured JSON text and embedded images into a publication-ready PDF with preset or custom CSS, selectable page size, and portrait or landscape orientation.
Instructions
Synthesizes a publication-ready PDF document from structured JSON text and embedded images
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": "json_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) |