DocumentWriter
Defined in: src/core/ir/adapters.ts:62
A synchronous writer for one output format (ir-design §7).
The adapter contracts may change until they stabilize against three or more adapters.
Type Parameters
Section titled “Type Parameters”TDoc
Properties
Section titled “Properties”consumes
Section titled “consumes”
readonlyconsumes:"flow"|"page"|"sheet"
Defined in: src/core/ir/adapters.ts:66
Which tree this writer consumes (‘sheet’ for the native grid writer).
readonlyid:string
Defined in: src/core/ir/adapters.ts:64
Output format id: ‘pdf’, ‘svg’, ‘html’, ‘docx’, ‘xlsx’, …
supports
Section titled “supports”
readonlysupports:ReadonlySet<string>
Defined in: src/core/ir/adapters.ts:68
Feature vocabulary this writer understands.
write: (
doc,opts?) =>WriteResult
Defined in: src/core/ir/adapters.ts:70
Encode doc to the output bytes, collecting any losses.
Parameters
Section titled “Parameters”TDoc