apply_hwp_paragraph_style
Apply paragraph alignment, indent, and line spacing to a specific paragraph in an HWPX document by specifying file path and paragraph index.
Instructions
Apply paragraph formatting (alignment·indent·line_spacing) to the Nth paragraph in an .hwpx. Adds a new paraPr to header.xml and retargets the paragraph's paraPrIDRef. align: LEFT|CENTER|RIGHT|JUSTIFY|DISTRIBUTE. Args: file_path, paragraph_index, align/indent/line_spacing (any subset), output_path (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| paragraph_index | Yes | ||
| align | No | ||
| indent | No | ||
| line_spacing | No | ||
| output_path | No |