Repository Public License
1# LibreOffice23| | |4|---|---|5| Component | LibreOffice (The Document Foundation), used headless as the office-format conversion engine |6| Version | 26.8.3 (build 26.8.3.1), official macOS aarch64 release |7| Download | https://download.documentfoundation.org/libreoffice/stable/26.8.3/mac/aarch64/LibreOffice_26.8.3_MacOS_aarch64.dmg |8| SHA-256 of the disk image | `de943203795e5057785f65515063e2db5eb60b0bb6d8e2534fec59e5cc5fb988` (identical to the `.sha256` file The Document Foundation publishes next to the image) |9| Installed as | `EmbeddedEngines/tools/LibreOffice.app` → `ORIX Convert.app/Contents/Helpers/LibreOffice.app` |10| Source code | https://download.documentfoundation.org/libreoffice/src/26.8.3/ — https://git.libreoffice.org/core (tag `libreoffice-26.8.3.1`) |11| License | Mozilla Public License 2.0 for LibreOffice itself; bundled third-party components under their own licenses (see below) |1213Fetched and slimmed by `fetch.sh` (pinned version and hash; the official signature of the downloaded bundle is14verified with `codesign --verify --deep --strict` before anything is touched).1516## How it is used1718LibreOffice is run as a **separate process**, one per conversion19(`soffice --headless --invisible --norestore --nologo --nodefault --nolockcheck --convert-to … --outdir …`), through20`ProcessRunner`, with a throw-away profile (`-env:UserInstallation=file://…` inside the job's work directory, `HOME`21and `TMPDIR` pointed there too). The user's own LibreOffice profile and installation are never read or written.22No LibreOffice source file is modified and nothing is linked into ORIX Convert.2324The profile written for every run (`LibreOffice.registryModifications` in `Packages/EngineDocuments`) sets:25macro security level 3 + `DisableMacrosExecution` + `DisableActiveContent`; `BlockUntrustedRefererLinks` and26"update links: never" for Writer and Calc; hyperlink opening off; an HTTP/HTTPS proxy on a closed local port;27update check, crash reporter, first-run wizard, recovery and OpenCL off.2829## What the slimming removes (and what was measured)3031Sizes are `du -sk` on APFS, measured by `fetch.sh` on 2026-11-21. After **each** stage the 24 reference conversions of32the engine (DOCX / ODT / RTF / DOC / TXT / HTML → PDF, DOCX ↔ ODT ↔ DOC ↔ RTF, → TXT / HTML / EPUB,33flat ODP → PPTX / ODP / PPT, PPTX / PPT / ODP → PDF, PPTX ↔ ODP ↔ PPT) were run and all 24 passed.3435| Stage | Removed | Size after (KiB) |36|---|---|---|37| official bundle | — | 827 784 |38| `integration` | Quick Look plug-ins (`Contents/PlugIns`), Spotlight importer (`Contents/Library`); Info.plist: document types, exported/imported UTIs, URL types, services and AppleScript keys removed, `LSUIElement = true`, bundle identifier `ai.spboucher.orix.convert.libreoffice` | 827 380 |39| `help` | built-in help, readmes, tips of the day | 764 596 |40| `content` | galleries, templates, wizards, AutoText | 736 984 |41| `uithemes` | all icon themes except Colibre (bitmap) | 666 416 |42| `extensions` | NLP solver; spelling and thesaurus data of the dictionaries (hyphenation patterns are **kept**: they change line breaks) | 610 456 |43| `python` | the bundled CPython 3.13 framework, PyUNO, the Python scripting provider and scripts | 523 644 |44| `java` | Java UNO bridge, report builder, HSQLDB, Java scripting providers (BeanShell, JavaScript) — no JVM is bundled | 513 484 |45| `scripting` | the Basic macro libraries shipped with the suite and the `Scripts` folder | 508 748 |46| `vba` | VBA object-model emulation libraries (`libvbaobjlo`, `libvbaswobjlo`) | 503 948 |47| `database` | embedded Firebird engine, PostgreSQL and LDAP connectors | 492 412 |48| `update` | online update checker | 491 912 |49| `tools` | `gengal`, `regview`, `senddoc`, `uno`, `unoinfo`, `unopkg`, `uri-encode`, `xpdfimport` (+ its data) | 474 680 |50| **installed bundle** (after re-sealing) | | **471 472 KiB ≈ 460 MiB**, 2 978 files |5152Result: 827 784 KiB → 471 472 KiB (−43 %). Mach-O files: 218 → 121.5354Tried and **kept** because removing them broke conversions:5556- `Resources/config/soffice.cfg` (36 MiB of UI descriptions): without it every document fails to load; removing only57 the `.ui` dialog files makes conversions hang.58- `libjvmaccesslo`, `libjvmfwklo`, `libfbclient`: load-time dependencies of `libmergedlo.dylib`. `fetch.sh` checks that59 every `@loader_path` dependency of every remaining Mach-O file is still present.6061Kept on purpose: all bundled fonts (52 MiB: Liberation, Carlito, Caladea, DejaVu, Noto… — they are what gives62metric-compatible substitution for Arial / Times New Roman / Calibri / Cambria), Calc and Draw (not used by this63engine, possibly useful to others), ICU data, `opencltest`.6465Why the Info.plist is edited: the official bundle declares document types, UTIs and Quick Look / Spotlight66plug-ins; nested in another app it would be registered by Launch Services as a handler for office documents.67Measured with `lsappinfo`: the official `soffice --headless` registers as a **Foreground** application (a Dock icon68appears for every conversion); with `LSUIElement` it registers as **UIElement** (no Dock icon).6970Side effect measured on the macro test (`SafetyTests.autoOpenMacroIsNeverExecuted`): a document whose Basic macro is71bound to its load event runs that macro in the official bundle with macro security off; in the slimmed bundle it72does not run even with macro security off, and with ORIX Convert's profile it does not run in either.7374## Licenses and notices that must stay in the app7576These files are inside the bundle and are never removed (`fetch.sh` fails if one is missing):7778- `Contents/Resources/LICENSE` and `LICENSE.html` — MPL-2.0 text plus the licenses of every bundled third-party79 component (ICU, HarfBuzz, Skia, PDFium, libxml2, NSS, curl, Liberation / Carlito / Caladea / DejaVu / Noto fonts,80 hyphenation dictionaries, etc.);81- `Contents/Resources/NOTICE` — attribution notice (Apache OpenOffice heritage);82- `Contents/Resources/CREDITS.fodt` — contributors.8384Obligations: keep those files; state in the app's acknowledgements that LibreOffice 26.8.3 is included under the85MPL-2.0 and where its source is (links above); the MPL requires that recipients can obtain the source of the86MPL-covered files — unmodified here, so the upstream source release is the corresponding source. Third-party87components keep their own notices (all in `LICENSE`). "LibreOffice" is a trademark of The Document Foundation: the88app must not present itself as LibreOffice or suggest endorsement.8990## Code signing — what the release build must do9192State of the official bundle: signed by The Document Foundation (Team ID `7P5S3ZLCN7`), Hardened Runtime, notarized.93Entitlements of the official `soffice` (`codesign -d --entitlements - LibreOffice.app`):9495```96com.apple.security.automation.apple-events true97com.apple.security.cs.allow-jit true98com.apple.security.cs.disable-executable-page-protection true99com.apple.security.cs.disable-library-validation true100com.apple.security.personal-information.addressbook true101```102103State after `fetch.sh`: removing files and editing `Info.plist` invalidates the official seal, and macOS kills a main104executable whose Info.plist no longer matches its signature (observed: `Killed: 9`). `fetch.sh` therefore re-seals105the bundle with an **ad-hoc** signature carrying the same five entitlements (no Hardened Runtime), so that it runs on106the build machine. The 119 libraries keep their official signatures until the release build replaces them.107108Entitlements actually needed — measured on 2026-11-21 by re-signing a private copy **ad hoc with the Hardened109Runtime** (`codesign --options runtime`) and running the 24 reference conversions:110111| Entitlements on `soffice` (Hardened Runtime on) | Result |112|---|---|113| `disable-library-validation` only | 0 / 24 — `Fatal exception: Signal 5` at start |114| `disable-library-validation` + `allow-jit` | 24 / 24 |115| `disable-library-validation` + `allow-jit` + `disable-executable-page-protection` | 24 / 24 |116117So `com.apple.security.cs.allow-jit` is **required**. `disable-executable-page-protection`, `apple-events` and118`addressbook` were not needed for conversion. `disable-library-validation` was needed in the rehearsal only because119ad-hoc code has no Team ID; when every Mach-O file below is signed with the same Developer ID team it should not120be needed — **that last point was not tested here** (no Developer ID signature was made by this engine's work).121122Recommended procedure:1231241. Sign every Mach-O file listed below, libraries first, with `codesign --force --options runtime --timestamp125 --sign "Developer ID Application: …"` (no entitlements on libraries).1262. Sign `Contents/MacOS/opencltest`, then the bundle127 (`codesign --force --options runtime --timestamp --entitlements libreoffice.entitlements --sign … LibreOffice.app`)128 with `com.apple.security.cs.allow-jit` (add `disable-library-validation` only if a library keeps a foreign129 signature).1303. Do not use `--deep` to sign; verify with `codesign --verify --deep --strict` afterwards. Sign this nested bundle131 before the outer app.1324. Re-run `swift test` of `Packages/EngineDocuments` with `ORIX_CONVERT_TOOLS` pointing at the signed helpers: the133 macro, remote-resource and 130 path tests exercise the signed binaries.134135### Mach-O files to sign (121: 2 executables, 119 libraries)136137Regenerated by `fetch.sh` into `work/macho-files.txt`.138139```140Contents/Frameworks/libAppleRemotelo.dylib141Contents/Frameworks/libCbc.3.dylib142Contents/Frameworks/libCbcSolver.3.dylib143Contents/Frameworks/libCgl.1.dylib144Contents/Frameworks/libClp.1.dylib145Contents/Frameworks/libClpSolver.1.dylib146Contents/Frameworks/libCoinMP.1.dylib147Contents/Frameworks/libCoinUtils.3.dylib148Contents/Frameworks/libLanguageToollo.dylib149Contents/Frameworks/libOsi.1.dylib150Contents/Frameworks/libOsiClp.1.dylib151Contents/Frameworks/libPresentationMinimizerlo.dylib152Contents/Frameworks/libabplo.dylib153Contents/Frameworks/libaffine_uno_uno.dylib154Contents/Frameworks/libassuan.9.dylib155Contents/Frameworks/libbinaryurplo.dylib156Contents/Frameworks/libbootstraplo.dylib157Contents/Frameworks/libcairo-lo.2.dylib158Contents/Frameworks/libcalclo.dylib159Contents/Frameworks/libclewlo.dylib160Contents/Frameworks/libclucene.dylib161Contents/Frameworks/libcmdmaillo.dylib162Contents/Frameworks/libcurl.4.dylib163Contents/Frameworks/libdbplo.dylib164Contents/Frameworks/libdeploymentgui.dylib165Contents/Frameworks/libepoxy.dylib166Contents/Frameworks/libetonyek-0.1.1.dylib167Contents/Frameworks/libfbclient.dylib.3.0.14168Contents/Frameworks/libfontconfig.1.dylib169Contents/Frameworks/libfreebl3.dylib170Contents/Frameworks/libgcc3_uno.dylib171Contents/Frameworks/libgpg-error.0.dylib172Contents/Frameworks/libgpgme.11.dylib173Contents/Frameworks/libgpgmepp.6.dylib174Contents/Frameworks/libi18nlangtag.dylib175Contents/Frameworks/libicudata.dylib.78176Contents/Frameworks/libicui18n.dylib.78177Contents/Frameworks/libicuuc.dylib.78178Contents/Frameworks/libintrospectionlo.dylib179Contents/Frameworks/libinvocadaptlo.dylib180Contents/Frameworks/libinvocationlo.dylib181Contents/Frameworks/libiolo.dylib182Contents/Frameworks/libjvmaccesslo.dylib183Contents/Frameworks/libjvmfwklo.dylib184Contents/Frameworks/liblangtag.1.dylib185Contents/Frameworks/liblcms2.2.dylib186Contents/Frameworks/liblocaledata_en.dylib187Contents/Frameworks/liblocaledata_es.dylib188Contents/Frameworks/liblocaledata_euro.dylib189Contents/Frameworks/liblocaledata_others.dylib190Contents/Frameworks/liblog_uno_uno.dylib191Contents/Frameworks/liblpsolve55.dylib192Contents/Frameworks/libmacabdrv1.dylib193Contents/Frameworks/libmacbe1lo.dylib194Contents/Frameworks/libmergedlo.dylib195Contents/Frameworks/libmigrationoo2lo.dylib196Contents/Frameworks/libmigrationoo3lo.dylib197Contents/Frameworks/libmswordlo.dylib198Contents/Frameworks/libmwaw-0.3.3.dylib199Contents/Frameworks/libnamingservicelo.dylib200Contents/Frameworks/libnspr4.dylib201Contents/Frameworks/libnss3.dylib202Contents/Frameworks/libnssckbi.dylib203Contents/Frameworks/libnssdbm3.dylib204Contents/Frameworks/libnssutil3.dylib205Contents/Frameworks/libodfgen-0.1.1.dylib206Contents/Frameworks/liborcus-0.21.0.dylib207Contents/Frameworks/liborcus-parser-0.21.0.dylib208Contents/Frameworks/libpcrlo.dylib209Contents/Frameworks/libpdfimportlo.dylib210Contents/Frameworks/libpdfiumlo.dylib211Contents/Frameworks/libpixman-1.0.dylib212Contents/Frameworks/libplc4.dylib213Contents/Frameworks/libplds4.dylib214Contents/Frameworks/libproxyfaclo.dylib215Contents/Frameworks/libraptor2-lo.0.dylib216Contents/Frameworks/librasqal-lo.3.dylib217Contents/Frameworks/librdf-lo.0.dylib218Contents/Frameworks/libreflectionlo.dylib219Contents/Frameworks/libreglo.dylib220Contents/Frameworks/librevenge-0.0.0.dylib221Contents/Frameworks/libsal_textenclo.dylib222Contents/Frameworks/libscdlo.dylib223Contents/Frameworks/libscfiltlo.dylib224Contents/Frameworks/libsclo.dylib225Contents/Frameworks/libscnlo.dylib226Contents/Frameworks/libscuilo.dylib227Contents/Frameworks/libsddlo.dylib228Contents/Frameworks/libsdlo.dylib229Contents/Frameworks/libsduilo.dylib230Contents/Frameworks/libsingleprovlo.dylib231Contents/Frameworks/libskialo.dylib232Contents/Frameworks/libsmdlo.dylib233Contents/Frameworks/libsmime3.dylib234Contents/Frameworks/libsmlo.dylib235Contents/Frameworks/libsoftokn3.dylib236Contents/Frameworks/libssl3.dylib237Contents/Frameworks/libstaroffice-0.0.0.dylib238Contents/Frameworks/libstocserviceslo.dylib239Contents/Frameworks/libstorelo.dylib240Contents/Frameworks/libsw_writerfilterlo.dylib241Contents/Frameworks/libswdlo.dylib242Contents/Frameworks/libswlo.dylib243Contents/Frameworks/libswuilo.dylib244Contents/Frameworks/libuno_cppu.dylib.3245Contents/Frameworks/libuno_cppuhelpergcc3.dylib.3246Contents/Frameworks/libuno_purpenvhelpergcc3.dylib.3247Contents/Frameworks/libuno_sal.dylib.3248Contents/Frameworks/libuno_salhelpergcc3.dylib.3249Contents/Frameworks/libunoidllo.dylib250Contents/Frameworks/libunopkgapp.dylib251Contents/Frameworks/libunsafe_uno_uno.dylib252Contents/Frameworks/libuuresolverlo.dylib253Contents/Frameworks/libvclplug_osxlo.dylib254Contents/Frameworks/libwpd-0.10.10.dylib255Contents/Frameworks/libwpg-0.3.3.dylib256Contents/Frameworks/libwps-0.4.4.dylib257Contents/Frameworks/libwriterlo.dylib258Contents/Frameworks/libxmlreaderlo.dylib259Contents/MacOS/opencltest260Contents/MacOS/soffice261```262