agentskit.js

loadPdf

Auto-generated API reference for loadPdf.

Function: loadPdf()

loadPdf(url, options): Promise<InputDocument[]>

Defined in: packages/rag/src/loaders/documents.ts:229

PDF loader β€” parser is BYO so native deps stay out of the bundle. Fetch bytes at url, hand to parsePdf, wrap in InputDocument.

#Parameters

#url

string

#options

PdfLoaderOptions

#Returns

Promise<InputDocument[]>

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.