HWPX icon

HWPX

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

콘텐츠 → 머리글/바닥글 설정

AI-generated

Summary

Set or modify the header and footer text in an HWPX document, specifying which pages to apply the changes to.

Inputs

  • inputSource (required) — Select the file input method: 'binary' for binary input data or 'url' to specify a file URL to download the HWPX document.
  • inputBinaryPropertyName (required) — The name of the binary property containing the HWPX file when using binary input.
  • fileUrl (required) — The URL of the HWPX file to download when using URL input.
  • headerText — Text to display in the page header; leave empty to skip setting header text.
  • footerText — Text to display in the page footer; leave empty to skip setting footer text.
  • outputBinaryPropertyName — The name of the binary property where the modified HWPX file will be stored after the header/footer updates.
  • options.applyPageType — Specify which pages the header/footer text should be applied to: all pages, even pages only, or odd pages only.

Output shape

a single binary output containing the modified HWPX file

The output binary property contains the updated document with new header/footer text applied according to the specified page option. If headerText or footerText is empty, that part is left unchanged or skipped.

Examples

Example 1: Using a binary HWPX input to set header and footer on all pages

Set inputSource to 'binary', provide the binary property name, set headerText and footerText, leave applyPageType at default 'BOTH'. The modified file will be output in the specified outputBinaryPropertyName.

Example 2: Using a URL input to set footer text only on odd pages

Set inputSource to 'url', specify the fileUrl, leave headerText empty, set footerText, and set applyPageType to 'ODD'. The updated file with footer on odd pages outputs to outputBinaryPropertyName.

Links

Discussion