pdf_add_text
Insert text at exact coordinates on a PDF page. Supports multi-line, fonts, colors, and line spacing.
Instructions
Add text at a specific position on a PDF page. Supports multi-line text (use \n). Coordinates are in points from bottom-left.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X from left edge (points) | |
| y | Yes | Y from bottom edge (points). For multi-line, this is the top line position. | |
| font | No | Font (default: Helvetica) | Helvetica |
| page | Yes | Page number (1-indexed) | |
| text | Yes | Text to add. Use \n for multiple lines. | |
| color | No | Color (default: black) | #000000 |
| filePath | Yes | PDF file path | |
| fontSize | No | Font size (default: 12) | |
| outputPath | Yes | Output path | |
| lineSpacing | No | Line spacing multiplier for multi-line text (default: 1.4) |