extract_hwpx_xml
Extract header.xml and section0.xml from an HWPX file to read style IDs, reuse the header, or edit text nodes for rebuilding.
Instructions
Extract header.xml and section0.xml from an HWPX file.
Use this to get the raw XML from a reference HWPX so you can:
Read the exact charPrIDRef/paraPrIDRef/borderFillIDRef values in use
Copy the header.xml for reuse in build_hwpx()
Edit section0.xml text nodes and pass the modified file to build_hwpx()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwpx_path | Yes | Absolute path to the source .hwpx file. | |
| extract_dir | No | Directory to write header.xml and section0.xml into. Defaults to a system temp directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |