Class: DocxReader
A FileReader takes file paths and imports data into Document objects.
Extends
Constructors
new DocxReader()
new DocxReader():
DocxReader
Returns
Inherited from
Methods
loadData()
Parameters
• filePath: string
Returns
Promise
<Document
<Metadata
>[]>
Inherited from
Source
packages/core/src/readers/type.ts:17
loadDataAsContent()
loadDataAsContent(
fileContent
):Promise
<Document
<Metadata
>[]>
DocxParser
Parameters
• fileContent: Buffer
Returns
Promise
<Document
<Metadata
>[]>
Overrides
FileReader
. loadDataAsContent
Source
packages/core/src/readers/DocxReader.ts:7
addMetaData()
static
addMetaData(filePath
): (doc
,index
) =>void
Parameters
• filePath: string
Returns
Function
Parameters
• index: number