DocumentReader
Defined in: src/core/ir/adapters.ts:20
Type Parameters
Section titled “Type Parameters”TDoc = FlowDoc
Properties
Section titled “Properties”
readonlyid:string
Defined in: src/core/ir/adapters.ts:22
Format id: ‘docx’, ‘xlsx’, ‘pdf’, …
produces
Section titled “produces”
readonlyproduces:"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
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”ReadResult<TDoc>
sniff: (
bytes) =>boolean
Defined in: src/core/ir/adapters.ts:28
Cheap format detection (magic bytes / container markers).
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”boolean
supports
Section titled “supports”
readonlysupports:ReadonlySet<string>
Defined in: src/core/ir/adapters.ts:26
Feature vocabulary this reader understands (capability matrix source).