pdf_create
Create PDFs from plain text with automatic word-wrapping, pagination, and bold headings. Configure fonts, margins, and page sizes to suit your document.
Instructions
Create a new PDF from text. Supports auto word-wrapping, pagination, bold/italic, configurable fonts, margins, page sizes. Lines starting with "# " render as bold headings.
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": {
"outputPath": "<outputPath>",
"content": "<content>"
},
"name": "pdf_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | Font family (default: Helvetica) | Helvetica |
| title | No | Document title (metadata) | |
| author | No | Document author (metadata) | |
| margin | No | Page margin in points (default: 50) | |
| content | Yes | Text content. Use \n for line breaks. Lines starting with "# " become bold headings. Text auto-wraps and paginates. | |
| fontSize | No | Font size in points (default: 12) | |
| pageSize | No | Page size (default: A4) | A4 |
| outputPath | Yes | Path where the PDF will be saved | |
| lineSpacing | No | Line spacing multiplier (default: 1.4) |