Skip to main content

Class: DocxReader

A FileReader takes file paths and imports data into Document objects.

Extends

Constructors

new DocxReader()

new DocxReader(): DocxReader

Returns

DocxReader

Inherited from

FileReader.constructor

Methods

loadData()

loadData(filePath): Promise<Document<Metadata>[]>

Parameters

filePath: string

Returns

Promise<Document<Metadata>[]>

Inherited from

FileReader.loadData

Defined in

packages/core/schema/dist/index.d.ts:188


loadDataAsContent()

loadDataAsContent(fileContent): Promise<Document<Metadata>[]>

DocxParser

Parameters

fileContent: Uint8Array

Returns

Promise<Document<Metadata>[]>

Overrides

FileReader.loadDataAsContent

Defined in

packages/readers/docx/dist/index.d.ts:5


addMetaData()

static addMetaData(filePath): (doc, index) => void

Parameters

filePath: string

Returns

Function

Parameters

doc: BaseNode<Metadata>

index: number

Returns

void

Inherited from

FileReader.addMetaData

Defined in

packages/core/schema/dist/index.d.ts:189