Skip to content

DocumentReader

Defined in: src/core/ir/adapters.ts:20

TDoc = FlowDoc

readonly id: string

Defined in: src/core/ir/adapters.ts:22

Format id: ‘docx’, ‘xlsx’, ‘pdf’, …


readonly produces: "flow" | "page"

Defined in: src/core/ir/adapters.ts:24

Which tree this reader produces.


read: (bytes, opts?) => ReadResult<TDoc>

Defined in: src/core/ir/adapters.ts:29

Uint8Array

ReadOptions

ReadResult<TDoc>


sniff: (bytes) => boolean

Defined in: src/core/ir/adapters.ts:28

Cheap format detection (magic bytes / container markers).

Uint8Array

boolean


readonly supports: ReadonlySet<string>

Defined in: src/core/ir/adapters.ts:26

Feature vocabulary this reader understands (capability matrix source).