Generate PDF from Text
pdf_text_to_pdfConverts plain text or local .txt/.md files into clean, paginated A4 PDFs locally.
Instructions
Create a clean paginated A4 PDF locally from plain text content or a local .txt/.md file.
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": {
"text": "<text>",
"outputPath": "<outputPath>"
},
"name": "pdf_text_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text content to render into PDF pages | |
| title | No | Optional document header/title | |
| fontSize | No | ||
| outputPath | Yes | Destination path for generated PDF |