ProcessedFileResult
Defined in: src/lib/processors/types.ts:14
Result from processing a file
Properties
extractedText
extractedText:
string
Defined in: src/lib/processors/types.ts:16
Extracted text content
format
format:
"json"|"plain"|"markdown"
Defined in: src/lib/processors/types.ts:19
Format hint for how text should be presented
imageDataUrls?
optionalimageDataUrls:string[]
Defined in: src/lib/processors/types.ts:26
Fallback image data URLs (base64 PNG) when text extraction yields no content. For example, scanned PDFs have no extractable text — rendering each page as an image lets the vision model read the document instead.
metadata?
optionalmetadata:object
Defined in: src/lib/processors/types.ts:29
Optional metadata about the extraction
Index Signature
[key: string]: unknown
pageCount?
optionalpageCount:number
sheetCount?
optionalsheetCount:number
sheetNames?
optionalsheetNames:string[]
wordCount?
optionalwordCount:number