apply_hwp_text_style
Format specific text in HWP files by applying color, bold, italic, underline, or font size to the first occurrence of target text.
Instructions
Apply formatting (color/bold/italic/underline/font_size) to the first run that contains target_text. Adds a new charPr to header.xml and retargets the matching hp:run. Color is a 6-digit hex (e.g. 'FF0000'). Args: file_path, target_text, color/bold/italic/underline/font_size (any subset), output_path (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target_text | Yes | ||
| color | No | ||
| bold | No | ||
| italic | No | ||
| underline | No | ||
| font_size | No | ||
| output_path | No |