Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Type

Description

name

String

저장할 파일명을 입력합니다. (defalut: untitled)

pageOrientationString용지 방향을 설정합니다. portrait(defalut) | landscape
exportFileFormat

String

파일 포맷을 지정합니다. hwpx(defalut) | hwp | docx

Note

공식 지원 포맷은 hwpx입니다.
그 외 포맷(hwp, docx, doc)은 변환 과정에서 일부 제한이 발생할 수 있습니다.


Return:

TypeDescription
Promise<void>

파일 내보내기 작업의 완료 여부를 나타내는 Promise를 반환



Example:

Code Block
languagejs
themeEmacs
editor.exportFile('에디터 편집문서', 'portrait', 'hwpx').then(() => {
	console.log('export가 완료되었습니다.');
});