Skip to main content

Class: PDFReader

Read the text of a PDF

Extends

Constructors

new PDFReader()

new PDFReader(): PDFReader

Returns

PDFReader

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(content): Promise<Document<Metadata>[]>

Parameters

content: Uint8Array<ArrayBufferLike>

Returns

Promise<Document<Metadata>[]>

Overrides

FileReader.loadDataAsContent

Defined in

packages/readers/pdf/dist/index.d.ts:7


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