Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

릴리즈 3.3.2602 이상

에디터에서 작성한 콘텐츠를 파일로 내보내는 기능을 제공합니다.

exportFile을 통해 지정한 포맷의 파일로 저장할 수 있습니다.

생성된 파일은 사용 중인 브라우저의 기본 다운로드 경로에 저장됩니다.


Parameters:

Name

Type

Description

name

String

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

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

String

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

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

Return:

TypeDescription
Promise<void>

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



Example:

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


  • No labels