Skip to main content

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

NameType
options?OpenDocumentOptions

Returns

Promise<{}>

OpenDocumentOptions

Ƭ OpenDocumentOptions: Object

Type declaration

NameTypeDescription
filePathstringlocal 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