Interface OfficeLoadOptions

Options of one read.

interface OfficeLoadOptions {
    format?: string;
    signal?: AbortSignal;
}

Hierarchy (view full)

Properties

Properties

format?: string

Format hint passed directly to the document parser.

Example

'pdf' | 'docx' | 'md' | 'txt'
signal?: AbortSignal

Cancels this read and no other: load rejects with the signal's reason. officeparser checks the signal between its steps, so a step that reads one part's markup finishes first; a scan read in a worker thread ends with its worker. A deadline is a signal made for the read: AbortSignal.timeout(ms).