hwp_table_create_from_data
Create a new table from 2D array data with precise column/row widths in mm. First row can be styled as header with bold, centered text, and customizable background.
Instructions
2D 배열 데이터로 새 표를 생성합니다. col_widths/row_heights 로 mm 단위 정밀 레이아웃. (v0.7.3.1) cell 안 호출 시 자동으로 cell 폭 기반 col_widths 축소. row_heights 도 페이지 높이 자동 축소. treat_as_char 옵션으로 글자처럼 취급 on/off 제어 (cell 안 표는 한컴 자동 적용). (v0.7.6+) header_style=true 시 첫 행은 Bold + 가운데정렬 + 배경색 #E8E8E8 + 글자색 #333333 자동 적용 (header_bg_color/header_text_color 로 override).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | 2D 배열 데이터 | |
| alignment | No | 본문 행 정렬 (기본 left). 헤더 행은 header_style=true 시 항상 가운데 강제. | |
| col_widths | No | 열 너비 (mm, 자동 축소 가능) | |
| row_heights | No | 행 높이 (mm, v0.7.3.1 자동 축소 추가) | |
| header_style | No | 첫 행 헤더 스타일 (v0.7.6+: Bold + 가운데정렬 + 밝은 회색 배경 #E8E8E8 자동 적용) | |
| treat_as_char | No | v0.7.3.1 신규: 글자처럼 취급 on/off. cell 안 nested 표는 자동 true. top-level 표는 false 가 기본. | |
| header_bg_color | No | 헤더 배경색 [R,G,B] (기본 [232,232,232] 밝은 회색). header_style=true 일 때만 적용. | |
| header_text_color | No | 헤더 글자색 [R,G,B] (기본 [51,51,51] 진한 회색). header_style=true 일 때만 적용. |