function extractMarkdownFromFile(file, options): Promise<string>

converts a file to markdown (ImageFile or PdfFile).

Examples

Parameters

file: ImageFile | PdfFile | SpreadsheetFile

The file you want to extract the markdown content from.

options

options.label: string

A label for this extraction process, used for billing and monitoring.

Returns

Promise<string>

A promise that resolves to the extracted markdown content as a string.