|
6 | 6 | <p align="center"> |
7 | 7 | <a href="https://pypi.org/project/python-hwpx/"><img src="https://img.shields.io/pypi/v/python-hwpx?color=blue&label=PyPI" alt="PyPI"></a> |
8 | 8 | <a href="https://pypi.org/project/python-hwpx/"><img src="https://img.shields.io/pypi/pyversions/python-hwpx" alt="Python"></a> |
9 | | - <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2Fairmang%2Fpython-hwpx%2Fblob%2Fmain%2FLICENSE"><img src="proxy.php?url=https%3A%2F%2Fimg.shields.io%2Fbadge%2Flicense-%3Cspan+class%3D"x x-first x-last">MIT-green" alt="License"></a> |
| 9 | + <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2Fairmang%2Fpython-hwpx%2Fblob%2Fmain%2FLICENSE"><img src="proxy.php?url=https%3A%2F%2Fimg.shields.io%2Fbadge%2Flicense-%3Cspan+class%3D"x x-first x-last">Custom%20Noncommercial-orange" alt="License: Custom Non-Commercial"></a> |
10 | 10 | <a href="https://airmang.github.io/python-hwpx/"><img src="https://img.shields.io/badge/docs-Sphinx-8CA1AF" alt="Docs"></a> |
11 | 11 | </p> |
12 | 12 | </p> |
@@ -86,6 +86,7 @@ doc.save_to_path("결과물.hwpx") |
86 | 86 | | 📝 **단락** | 추가/삭제/편집/서식 | 텍스트 설정, 단락 삭제(`remove_paragraph`), 스타일 참조 | |
87 | 87 | | ✏️ **Run** | 텍스트 조각 | 추가, 교체, 볼드/이탤릭/밑줄/색상 서식 | |
88 | 88 | | 📊 **표(Table)** | 생성/편집/병합 | N×M 표 생성, 셀 텍스트, 셀 병합/분할, 중첩 테이블 | |
| 89 | +| 🧭 **표 자동화** | 탐색/채우기 | 테이블 맵, 라벨 기반 셀 탐색, 경로 기반 배치 채우기 | |
89 | 90 | | 📑 **섹션** | 추가/삭제 | `add_section(after=)`, `remove_section()`, manifest 자동 관리 | |
90 | 91 | | 🖼️ **이미지** | 임베드/삭제 | 바이너리 데이터 관리, manifest 자동 등록 | |
91 | 92 | | ✏️ **도형** | 선/사각형/타원 | OWPML 명세 준수 도형 삽입 | |
@@ -126,6 +127,17 @@ doc.set_footer_text("1 / 10", page_type="BOTH") |
126 | 127 | # 표 셀 병합·분할 |
127 | 128 | table.merge_cells(0, 0, 1, 1) # (0,0)~(1,1) 병합 |
128 | 129 | table.set_cell_text(0, 0, "병합된 셀", logical=True, split_merged=True) |
| 130 | +
|
| 131 | +# 양식형 표 자동 채우기 |
| 132 | +form = doc.add_table(2, 2) |
| 133 | +form.cell(0, 0).text = "성명:" |
| 134 | +form.cell(1, 0).text = "소속" |
| 135 | +
|
| 136 | +doc.find_cell_by_label("성명") # {"matches": [...], "count": 1} |
| 137 | +doc.fill_by_path({ |
| 138 | + "성명 > right": "홍길동", |
| 139 | + "소속 > right": "플랫폼팀", |
| 140 | +}) |
129 | 141 | ``` |
130 | 142 |
|
131 | 143 | ### 🔍 텍스트 추출 & 검색 |
@@ -257,13 +269,15 @@ pytest |
257 | 269 |
|
258 | 270 | ## License |
259 | 271 |
|
260 | | -[MIT](LICENSE) © 고규현 (Kyuhyun Koh) |
| 272 | +[Custom Non-Commercial License](LICENSE) © python-hwpx Maintainers |
| 273 | + |
| 274 | +Commercial use requires separate permission from the copyright holders. |
261 | 275 |
|
262 | 276 | <br> |
263 | 277 |
|
264 | | -## Author |
| 278 | +## Maintainer |
265 | 279 |
|
266 | | -**고규현** — 광교고등학교 정보·컴퓨터 교사 |
| 280 | +Primary maintainer/contact: **고규현** — 광교고등학교 정보·컴퓨터 교사 |
267 | 281 |
|
268 | 282 | |
269 | 283 | - 🐙 [@airmang](https://github.com/airmang) |
0 commit comments