HWPX icon

HWPX

HWPX/HWP 문서 읽기, 생성, 편집, 변환, 유효성 검사

콘텐츠 → 단 레이아웃

AI-generated

Summary

Set the column layout of an HWPX document by specifying the number of columns and their formatting options.

Inputs

  • inputSource — Select the input mode for the HWPX file: binary data or URL.
  • inputBinaryPropertyName (required) — Name of the binary property containing the HWPX file (used if inputSource is 'binary').
  • fileUrl (required) — URL of the HWPX file to download (used if inputSource is 'url').
  • columnCount (required) — Number of columns in the layout (e.g., 1 for single column, 2 for two columns).
  • outputBinaryPropertyName — Name of the binary property to save the modified HWPX file (default 'data').
  • options — Additional layout options including column type, gap between columns, and uniform column width.

Output shape

a single record containing the modified HWPX file in the specified binary property

Returns the edited HWPX document with the updated column layout. Input can be provided as binary data or a URL. Layout options determine how text flows between columns and spacing.

Examples

Example 1: Configure a document to have 3 newspaper-style columns with 5mm gap, keeping equal column widths, input from binary data property 'hwpxFile', output to 'modifiedData'.

Set inputSource to 'binary', inputBinaryPropertyName to 'hwpxFile', columnCount to 3, options.columnType to 'NEWSPAPER', options.gapMm to 5, options.sameSize to true, outputBinaryPropertyName to 'modifiedData'.

Links

Discussion