layoutDocxInBrowser()
engine.wasm), which fetches
the faces it lacks from opts.fonts as it lays out.
Import from @reductoai/docx/browser.
BrowserLayoutOptions
Import from @reductoai/docx/browser.
BrowserPageSink
A PageSink whose begin carries what a page consumer needs first.
Import from @reductoai/docx/browser.
browserLayoutHost()
editVersion(). Installs itself as the OfficeJS default, so a plain
WordDocument.fromBytes after this call can readPage. release frees a session’s
engine copy.
Import from @reductoai/docx/browser.
BrowserHostOptions
Per-host layout settings; incremental comes from the session and is not accepted.
Import from @reductoai/docx/browser.
renderPdfInBrowser()
@reductoai/docx/browser.
createBrowserEditorHost()
host.pages.
Import from @reductoai/docx/browser.
portableFaceProvider()
urlFor(file). Lazy: the
first document pulls the faces it uses (a Calibri letter costs Carlito’s four
files, about 1 MB), not the 16 MB profile.
Import from @reductoai/docx/browser.
tableFaceProvider()
install costs the
table alone; each face downloads once, the first time a document needs it,
and stays for the session. A face that fails to download is left absent, so
layout falls back exactly as it would on a machine missing that font.
Import from @reductoai/docx/browser.
FaceProvider
How face bytes reach the browser. FaceSource.bytes() is synchronous, so a
layout cannot fetch mid-run; layoutDocxInBrowser lays out once to trace
the faces it needs, calls fetch with those ids, and lays out again when
bytes arrived. bytes serves canvas FontFace loading and PDF embedding.
Import from @reductoai/docx/browser.
TableFaceProvider
A FaceProvider over a FaceTable, plus the by-family verbs a host needs around it.
Import from @reductoai/docx/browser.