pdf_create
Create a new PDF from text with auto word-wrapping and pagination. Supports bold headings, configurable fonts, margins, and page sizes.
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.
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) |