...
Name | Type | Description | ||
|---|---|---|---|---|
name | String | 저장할 파일명을 입력합니다. (defalut: untitled) | ||
| pageOrientation | String | 용지 방향을 설정합니다. portrait(defalut) | landscape | ||
| exportFileFormat | String | 파일 포맷을 지정합니다. hwpx(defalut) | hwp | docx
|
Return:
| Type | Description |
|---|---|
| Promise<void> | 파일 내보내기 작업의 완료 여부를 나타내는 Promise를 반환 |
Example:
| Code Block | ||||
|---|---|---|---|---|
| ||||
editor.exportFile('에디터 편집문서', 'portrait', 'hwpx').then(() => {
console.log('export가 완료되었습니다.');
}); |