# Browser conversion engine: source and licenses

WordOnline self-hosts `@matbee/libreoffice-converter` **2.7.2**. The package declares **Mozilla Public License 2.0**. The vendor JavaScript, WebAssembly binary and engine data are unchanged; the two large binaries are stored as losslessly reassembled chunks. WordOnline adds a separate worker entry point restricting network access and suppressing document diagnostics.

## Source and exact distribution

- [Wrapper source at the inspected revision](https://github.com/matbeedotcom/libreoffice-document-converter/tree/b72a3d584bc28c5111afafcf25def7a24fb5fcb0)
- [Download wrapper source archive](https://github.com/matbeedotcom/libreoffice-document-converter/archive/b72a3d584bc28c5111afafcf25def7a24fb5fcb0.tar.gz)
- [Upstream WebAssembly build scripts](https://github.com/matbeedotcom/libreoffice-document-converter/tree/b72a3d584bc28c5111afafcf25def7a24fb5fcb0/build) and [build patch](https://github.com/matbeedotcom/libreoffice-document-converter/blob/b72a3d584bc28c5111afafcf25def7a24fb5fcb0/build/patches/wasm-build-fixes.patch)
- [Exact npm distribution](https://registry.npmjs.org/@matbee/libreoffice-converter/-/libreoffice-converter-2.7.2.tgz)
- LibreOffice engine `versionrc` reports `LibreOfficeDev_24_en-US`, build ID **d1c9e0e4e1ddeb24fe8f93e56860b3765043f8b1**. [LibreOffice source at that build ID](https://github.com/LibreOffice/core/tree/d1c9e0e4e1ddeb24fe8f93e56860b3765043f8b1) · [source archive](https://github.com/LibreOffice/core/archive/d1c9e0e4e1ddeb24fe8f93e56860b3765043f8b1.tar.gz).
- The engine binary is distributed by the wrapper author. The build ID identifies its LibreOffice base; wrapper patches and configuration are separately available above. WordOnline has not claimed a bit-for-bit rebuild of that upstream binary.

The source and license links are available without a WordOnline account or charge. These open-source rights are not restricted by WordOnline's site terms. No affiliation with or endorsement by LibreOffice, The Document Foundation, or the wrapper author is claimed.

## Included license and attribution texts

- [Mozilla Public License 2.0 — full original text](./LICENSE-MPL-2.0.txt)
- [LibreOffice third-party licenses and copyright notices — full upstream document](./LibreOffice-third-party-licenses.html)
- [LibreOffice NOTICE](./LibreOffice-NOTICE.txt)
- [LibreOffice COPYING](./LibreOffice-COPYING.txt) and [COPYING.LGPL](./LICENSE-LGPL-3.0.txt), retained as supplemental upstream texts. Their inclusion does not label every component as LGPL/GPL; individual components have the terms listed in the full upstream license document.
- [Original third-party license source](./LibreOffice-third-party-license-source.xml), taken from the same LibreOffice build ID. This complete source includes conditional notices for build variants; it may describe components beyond this WebAssembly build.
- PDF-to-Word conversion separately uses MIT-licensed **documents.js 14.4.124**: [source](https://github.com/ExaDev/documents.js/tree/d11be233d77c61307679e94ffd7b71bd8c0f4020) · [original MIT license and copyright](./documents.js-MIT-LICENSE.txt).

All original license texts are included without translation or alteration. LibreOffice includes software and fonts under multiple licenses, so the third-party notices above accompany the main MPL text.

## Asset integrity and reproduction

[manifest.json](./manifest.json) lists chunk filenames, exact byte lengths and SHA-256 hashes, including lossless gzip transport variants. Each original chunk is at most **20 MiB**, below the deployment platform's 25 MiB per-asset limit. All compressed variants are also below that limit. The browser downloads compressed assets, verifies the original bytes after decompression and reconstructs Blob URLs in memory. When HTTP has not already decoded gzip, it also verifies the compressed bytes before decompression. Document bytes are not among these assets.

| Original asset | Bytes | Chunks | SHA-256 after reassembly |
|---|---:|---:|---|
| soffice.wasm | 147,416,331 | 8 | `ea3d8f3b69bd1e586a8ea973e0dfa61c758612fcc529dc94ac2e30519f8b4f7b` |
| soffice.data | 99,735,918 | 5 | `8f4e98aa67e108e161cecc7906d7ac0dd3941ef9347f999c3b9dbc049f165020` |

Reproduce the chunks with the project script `scripts/prepare-libreoffice-assets.mjs` after installing the pinned npm package. The added [wordonline-worker.js](./wordonline-worker.js) is publicly readable source.

The project script `scripts/compress-conversion-assets.py` creates deterministic gzip variants (level 9, timestamp 0) and records both compressed and original hashes. The engine chunks and CJK font together occupy **90,509,506 compressed bytes**, expanding losslessly to **263,589,613 bytes**. Native `DecompressionStream` is used when available, with the already included MIT-licensed `fflate` library as a fallback. Compression does not modify the engine or font contents.

Exact npm archive integrity: `sha512-62S8uLiFvwbXiCu3IfkO1cDjTyZWUy5nlMsTrmj3l+G5zf5fQcgpvzfRDR9wId+bduarrv11ZDb8Olz5zj4zJA==`.

## CJK fallback font

Noto Sans CJK SC Regular is included as a fallback for Chinese, Japanese and Korean glyphs missing from the engine fonts. It is distributed under the SIL Open Font License 1.1. The font is unmodified. [Original license and copyright](./NotoSansCJK-LICENSE.txt) · [pinned source](https://github.com/notofonts/noto-cjk/tree/f8d157532fbfaeda587e826d4cd5b21a49186f7c) · [font](./NotoSansCJKsc-Regular.otf). Its byte count and SHA-256 are in the manifest. This provides readable glyphs; it does not claim to install or reproduce a proprietary source font.
