pdf_create
Create a PDF from text content with automatic line wrapping and page overflow. Supports A4, Letter, Legal sizes and font customization for non-Latin text.
Instructions
Create a new PDF from text content with automatic line wrapping and page overflow. Supports A4, Letter, and Legal page sizes. Provide fontPath for non-Latin text (Arabic, CJK, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | Yes | Absolute path for the output PDF file | |
| content | Yes | Text content for the PDF. Use \n for line breaks. | |
| title | No | PDF document title metadata | |
| author | No | PDF document author metadata | |
| pageSize | No | Page size. Defaults to A4. | |
| fontSize | No | Font size in points (6–72). Defaults to 12. | |
| margin | No | Page margin in points (0–500). Defaults to 50. | |
| fontPath | No | Absolute path to a .ttf/.otf font file for non-Latin character support (Arabic, CJK, etc.). The built-in font is Latin-only. |