bn.openDocument
▸ openDocument(options?
): Promise
<{}>
description
Open document file
remark
supported jssdk >= 4.26.0
example
await bn.openDocument({
filePath: '/root/xxx.pdf',
fileType: 'pdf'
})
Parameters
Name | Type |
---|---|
options? | OpenDocumentOptions |
Returns
Promise
<{}>
OpenDocumentOptions
Ƭ OpenDocumentOptions: Object
Type declaration
Name | Type | Description |
---|---|---|
filePath | string | local file path, support temporary path returned by bn.downloadFile |
fileType? | "doc" | "docx" | "xls" | "xlsx" | "ppt" | "pptx" | "pdf" | file type, valid values are doc, docx, xls, xlsx, ppt, pptx, pdf |