Actions31
콘텐츠 → 페이지 설정
AI-generatedSummary
Set the page setup of an HWPX document, including paper size, orientation, and margins, modifying the document accordingly and outputting the updated file as binary data.
Inputs
- inputSource (required) — Select the input file source type: either binary data or a URL to download the HWPX file.
- inputBinaryPropertyName (required) — Name of the binary property containing the HWPX file if inputSource is binary.
- fileUrl (required) — URL to download the HWPX file if inputSource is url.
- paperSize (required) — Choose the paper size for the document; options include A4, A3, B5, Letter, Legal, or custom size.
- orientation (required) — Set the page orientation to portrait or landscape.
- options — Optional margin and custom dimension settings in millimeters, including top, bottom, left, right, header, footer margins, and custom width/height if paper size is custom.
- outputBinaryPropertyName — Name of the output binary property to store the modified HWPX file, defaulting to 'data'.
Output shape
a single modified HWPX document file returned as binary data in the specified output binary property.
The operation reads an HWPX file from the specified input source (binary or URL), applies page setup changes based on the selected paper size, orientation, and margins, and returns the updated document as binary data. Custom paper width and height are used only if the paper size is set to custom.
Examples
Example 1: Set A4 paper size with portrait orientation and default margins using a binary input file.
InputSource: binary; inputBinaryPropertyName: data; paperSize: A4; orientation: portrait; outputBinaryPropertyName: data
Example 2: Set custom paper size with landscape orientation and specific margins using a file URL.
InputSource: url; fileUrl: https://example.com/document.hwpx; paperSize: custom; customWidth: 210; customHeight: 297; orientation: landscape; marginTop: 25; marginBottom: 20; marginLeft: 30; marginRight: 30; outputBinaryPropertyName: modifiedData