Actions31
문서 → To HTML
AI-generatedSummary
Converts an HWPX document file to an HTML string representation with customizable rendering options.
Inputs
- inputSource (required) — Selects the input mode: binary data or file URL.
- inputBinaryPropertyName (required) — The name of the binary property containing the HWPX file when inputSource is 'binary'.
- fileUrl (required) — The URL from which to download the HWPX file when inputSource is 'url'.
- options — Options to customize HTML output including whether to render images, tables, styles, embed images as Base64, and the HTML tag used for paragraphs.
Output shape
A single string value containing the converted HTML representation of the HWPX document.
The output HTML reflects the input HWPX content with images, tables, and styles included or excluded based on provided options. Images can optionally be embedded as Base64 data URLs. Paragraph tags in the HTML can be customized. Errors in reading or conversion may occur if the input is invalid or inaccessible.
Examples
Example 1: Convert an HWPX file included in binary data in the binary property 'data' to HTML with default rendering options.
Set 'inputSource' to 'binary' and 'inputBinaryPropertyName' to 'data'.
Example 2: Convert an HWPX document downloaded from a URL to HTML without rendering images and tables and using 'div' for paragraphs.
Set 'inputSource' to 'url', specify the 'fileUrl', and set options 'renderImages' and 'renderTables' to false, 'paragraphTag' to 'div'.