Skip to content

InitOptions

Options for init.

readonly optional extract?: boolean | WasmSource

Also load the extract module (reading plus text extraction, about half the text module’s size): true for the default file, or where it comes from. Documents opened afterwards can extract text (PageRef.text). Not needed when the text module is loaded.


readonly optional module?: WasmSource

The base module (default: the lamina_base.wasm next to the package, per export condition).


readonly optional text?: boolean | WasmSource

Also load the text module (fonts and text): true for the default file, or where it comes from. Without it, only builders created after a later loadText can draw text.