HWPX icon

HWPX

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

콘텐츠 → 이미지 삽입

AI-generated

Summary

Insert an image into an HWPX document at a specified position using either binary data or a URL for both the HWPX file and the image.

Inputs

  • inputSource (required) — Select whether the HWPX document is provided as binary data or a URL.
  • inputBinaryPropertyName (required) — Name of the binary property containing the HWPX file when 'binary' inputSource is selected.
  • fileUrl (required) — URL to download the HWPX file when 'url' inputSource is selected.
  • imageInputSource (required) — Select whether the image is provided as binary data or a URL.
  • imageBinaryPropertyName (required) — Name of the binary property containing the image file (PNG, JPG, GIF, BMP) when 'binary' imageInputSource is selected.
  • imageUrl (required) — URL to download the image file when 'url' imageInputSource is selected.
  • outputBinaryPropertyName — Name of the binary property in which to save the modified HWPX file.
  • options.position — Position to insert the image in the document: append (end) or prepend (start). Defaults to append.
  • options.widthMm — Display width of the inserted image in millimeters. Defaults to 100mm.
  • options.heightMm — Display height of the inserted image in millimeters. Defaults to 75mm.

Output shape

a single modified HWPX document saved in the specified output binary property.

The HWPX input file and the image to be inserted can be supplied either as binary data within the workflow item or via URL. Default binary property names are 'data' for the HWPX file and 'image' for the image. The inserted image is added either at the beginning or end of the document according to the chosen position option. The output is the modified HWPX document with the image added, written to the specified output binary property.

Links

Discussion