hwp_draw_param_action
Modify shapes in HWP documents by executing parameter-driven actions for alignment, fill, rotation, grouping, and other drawing properties.
Instructions
Execute HWP action with draw/shape-related HParameterSet.
Supported param_set_name values and their key properties:
HDrawAlignHorz: AlignType (0=left, 1=center, 2=right, 3=distribute), RelativeTo (0=paper, 1=column, 2=paragraph)
HDrawAlignVert: AlignType (0=top, 1=center, 2=bottom, 3=distribute), RelativeTo
HDrawAttr: Width, Height, Left, Top, HorzRelTo, VertRelTo, TreatAsChar (bool), TextFlow, ZOrder
HDrawChangeAttr: Width, Height, Left, Top, KeepRatio (bool)
HDrawConnect: StartObjID, EndObjID, StartPt, EndPt, ConnectorType
HDrawCurveToLine: Precision, MaxSegments
HDrawDeletePt: PointIndex
HDrawEditGroup: GroupObjID, Action (enter|leave)
HDrawFill: FillType (0=none, 1=color, 2=hatch, 3=gradation, 4=image), FillColor, HatchType, ImagePath, Gradation
HDrawFlip: Direction (0=horizontal, 1=vertical)
HDrawGrid: ShowGrid (bool), SnapToGrid (bool), GridWidth, GridHeight
HDrawGroup: GroupName
HDrawInsertPt: PointIndex, X, Y
HDrawLine: LineType, LineWidth, LineColor, StartArrow, EndArrow, DashStyle, CapType
HDrawMakeCurve: SegmentCount, SmoothLevel
HDrawMovePt: PointIndex, NewX, NewY
HDrawObjCreator: ObjectType (line|rect|ellipse|arc|polygon|curve|textbox), CreateMethod, StartX, StartY, EndX, EndY
HDrawRotate: Angle (degrees), CenterX, CenterY
HDrawSendBackward: Steps (number of layers to move back)
HDrawShadow: ShadowType (0=none, 1=drop, 2=cont), OffsetX, OffsetY, Color, Opacity
HDrawTextbox: Margin, VertAlign, TextDirection, AutoSize (bool)
HDrawUngroup: GroupObjID
Args: doc_id: Document ID from open_document action_name: HWP action to execute param_set_name: Must be one of the draw param sets listed above params: Properties to set on the param set
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| params | No | ||
| action_name | Yes | ||
| param_set_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||