hwp_misc_param_action
Execute HWP actions using any unsupported parameter set to handle diverse document operations like page setup, formatting, find/replace, and export, filling gaps left by specialized tools.
Instructions
Execute HWP action with miscellaneous HParameterSet.
This is the catch-all for all 67 remaining HParameterSets not covered by the specialized category tools. Key param_set_name values include:
Section & Page:
HSectionDef: PageWidth, PageHeight, TopMargin, BottomMargin, LeftMargin, RightMargin, HeaderMargin, FooterMargin, GutterType, Orientation
HSecDef: SectionType, TextDirection, PageStartNumber, HideHeader, HideFooter
HPageDef: Landscape (bool), GutterType, BindingMargin
HPageBorderFill: BorderType, FillColor, Position (0=paper, 1=body), OffsetLeft, OffsetRight, OffsetTop, OffsetBottom
HColumnDef: ColumnCount, ColumnType (0=normal, 1=balanced, 2=parallel), SameWidth (bool), ColumnWidths (list), ColumnGap, LineBetween (bool)
HPageNum: Position (0=none, 1=top, 2=bottom, 3=outside, 4=inside), FormatType, StartNumber, ShowOnFirstPage (bool), DashType
HHeaderFooter: Type (0=header, 1=footer), ApplyTo (0=both, 1=even, 2=odd), Text, ShowOnFirstPage (bool), ShowOnLastPage (bool)
HFootnoteShape: NumberFormat, StartNumber, Separator, Position
Character & Paragraph:
HCharShape: FaceName, FontSize, Bold (bool), Italic (bool), Underline, StrikeOut, TextColor, ShadeColor, CharSpacing, CharWidth, Offset, SuperScript
HParaShape: Alignment (0=justify, 1=left, 2=center, 3=right), LineSpacingType, LineSpacing, ParaSpaceBefore, ParaSpaceAfter, IndentLeft, IndentRight, IndentFirst, TabDef, BorderFill
HTabDef: TabType (0=left, 1=right, 2=center, 3=decimal), Position, Leader (0=none, 1=dot, 2=dash, 3=underline)
HBullet: BulletChar, BulletFont, BulletSize, Indent, Hanging
HNumbering: NumberType, StartNumber, Indent, Hanging, FormatString
Insert & Objects:
HInsertText: Text, CharShape, ParaShape
HInsertPicture: Path, Embedded (bool), Width, Height, SizeOption, WrapType, HorzAlign, VertAlign
HInsertOLE: CLSID, ProgID, Width, Height, DisplayAsIcon (bool), IconPath
HEquation: String (equation LaTeX), BaseSize, FontName, LineMode
HInsertMemo: Text, Author, Date, Visible (bool)
HInsertEndnote: Text, NumberFormat, CustomMark
Find & Replace:
HFindReplace: FindString, ReplaceString, MatchCase (bool), WholeWord (bool), UseRegex (bool), Direction, Scope, ReplaceAll (bool), MatchByte (bool)
HFindDlg: FindString, Direction, Scope, ShowUI (bool)
HReplaceDlg: FindString, ReplaceString, Direction, Scope, ShowUI (bool)
Print & Export:
HPrint: Copies, Collate (bool), PrintRange (0=all, 1=current, 2=pages), PageRange, PrinterName, Duplex (0=none, 1=long, 2=short), Landscape (bool)
HExportPDF: filename, PageRange, ImageQuality (0-100), Encrypt (bool), Permission, OwnerPassword, UserPassword
HWaterMark: Text, FontName, FontSize, FontColor, Angle, Opacity, Position (0=center, 1=custom), ImagePath
Misc:
HAction: ActionName, Params
HCtrlCode: CtrlID, Properties
HLinkTextBox: SourceBox, TargetBox, LinkType
HMasterPage: PageName, PageIndex, ApplyTo
HMultiColumn: ColumnCount, ColumnGap, SameWidth (bool), LineBetween
HPresentation: SlideWidth, SlideHeight, Transition, Duration
HRevision: RevisionType, Author, Date, Comment
HTextArt: Text, Shape, FontName, FontStyle, CharSpacing, LineSpacing
HViewProperties: ViewMode, ZoomType, ZoomLevel, ShowRuler, ShowGrid
Args: doc_id: Document ID from open_document action_name: HWP action to execute param_set_name: Any HParameterSet name not covered by other tools 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 | |||