shape
Insert, update, or delete lines, rectangles, ellipses, arcs, polygons, curves, and text boxes in HWP/HWPX documents; group or ungroup selected objects.
Instructions
도형·글상자·묶기. action: insert(at, kind, points?, text?, frame?, margin?, caption?, line?, fill?, shadow?, flip?, rotation?, round?, arc_type?, text_box?, fill_image?, fill_image_mode?); update(target, points?, frame?, margin?, caption?, line?, fill?, shadow?, flip?, rotation?, round?, arc_type?, text_box?, fill_image?, fill_image_mode?); delete(target); group(targets); ungroup(target)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Locator(한 점: s0/p3:5, doc:end, before:#p4 …) | |
| fill | No | rect.fill 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| flip | No | rect.flip 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| kind | No | ||
| line | No | rect.line 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| text | No | ||
| frame | No | rect.frame 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| round | No | ||
| action | Yes | ||
| handle | No | document.new/open이 준 handle | |
| margin | No | rect.margin 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| points | No | [[x, y], …] 길이(숫자는 mm) | |
| shadow | No | rect.shadow 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| target | No | Locator(노드 하나: #tbl7, s0/p3) | |
| caption | No | ||
| targets | No | Locator 목록(노드 여럿: ["#shp1", "#shp2"]) | |
| arc_type | No | ||
| rotation | No | ||
| text_box | No | rect.text_box 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| fill_image | No | 읽을 파일의 절대 경로 | |
| fill_image_mode | No |