Function initWasmFromBinary

  • Initialize the duc2pdf WASM module from a pre-fetched binary (ArrayBuffer). Used inside Web Workers where import.meta.url cannot resolve the .wasm file.

    Parameters

    • wasmBinary: BufferSource

    Returns Promise<void>