Nhảy tới nội dung

Class: PDFReader

Read the text of a PDF

Extends

Constructors

new PDFReader()

new PDFReader(): PDFReader

Returns

PDFReader

Inherited from

FileReader . constructor

Methods

loadData()

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

Parameters

file: string

Returns

Promise <Document <Metadata>[]>

Overrides

FileReader . loadData

Source

packages/llamaindex/src/readers/PDFReader.ts:9


loadDataAsContent()

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

Parameters

content: Uint8Array

Returns

Promise <Document <Metadata>[]>

Overrides

FileReader . loadDataAsContent

Source

packages/llamaindex/src/readers/PDFReader.ts:14


addMetaData()

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

Parameters

filePath: string

Returns

Function

Parameters

doc: Document <Metadata>

index: number

Returns

void

Inherited from

FileReader . addMetaData

Source

packages/llamaindex/src/readers/type.ts:24