Actions31
콘텐츠 → 표 추가
AI-generatedSummary
Add a table to a HWPX document by providing JSON-formatted table data, specifying the target document via binary input or URL, and customizing insertion options such as position, cell size, and border style.
Inputs
- inputSource (required) — Select the method of inputting the source HWPX file, either as binary data or a downloadable URL.
- inputBinaryPropertyName — The name of the binary property containing the HWPX file when inputSource is set to binary.
- fileUrl — The URL from which to download the HWPX file when inputSource is set to URL.
- tableData (required) — The table data in JSON format as a two-dimensional array, e.g., [["Header1","Header2"],["Data1","Data2"]].
- outputBinaryPropertyName — The binary property name to store the modified HWPX file output.
- options.position — Specify where to insert the table in the document: at the beginning ('prepend') or the end ('append'). Default is append.
- options.cellWidthMm — Set the width of each table cell in millimeters. Default is 30 mm.
- options.cellHeightMm — Set the height of each table cell in millimeters. Default is 10 mm.
- options.borderFillIDRef — Reference ID for the border/fill style defined in Header.xml. Default ID 3 applies a standard border style.
Output shape
a single modified HWPX file returned as binary data in the specified output binary property
The operation outputs the updated HWPX document file containing the newly inserted table. Input can come from a binary property or via URL, depending on 'inputSource'. The JSON 'tableData' must be correctly formatted as a nested array. Options allow control over table insertion position, cell dimensions, and border aesthetics.