post_process_powerpoint
Fix text overflow in PowerPoint presentations by enabling text wrapping and shrink-to-fit for text boxes containing long content.
Instructions
Apply post-processing to a PowerPoint presentation to optimize text boxes.
This function enables text wrapping and shrink text on overflow for text boxes that contain text longer than the specified threshold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_file | Yes | Path to the input PowerPoint file (.pptx) | |
| output_file | No | Path to save the processed file (optional, auto-generated if not provided) | |
| enable_autofit | No | Enable text auto-fitting (default: True) | |
| text_threshold | No | Text length threshold for enabling auto-fit (overrides .env setting) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |