@nhtio/adk/batteries/media/engines/soffice
The LibreOffice-backed @nhtio/adk/batteries/media/contracts!MediaEngine: document, spreadsheet, and presentation conversion via the soffice binary.
Remarks
Document conversion is the one capability in the media battery with no mature cross-environment equivalent, so this engine is binary-backed by design. It composes the two BYO runtime contracts: a @nhtio/adk/batteries/media/contracts!BinaryExecutor runs the invocation (bundled: execa_executor) and a @nhtio/adk/batteries/media/contracts!ScratchWorkspace exchanges bytes with it (bundled: fs_workspace). The executor and workspace must agree on path visibility — that pairing is the consumer's composition decision.
One engine, one capability kind: the conversion matrix is declared as convert capability groups (each format silo converts within itself plus to PDF/HTML; PDF converts to html/txt/docx/odt). The spreadsheet group covers ODS/legacy-xls to xlsx — what used to be a separate "normalize" engine is just an edge in the matrix.
Interfaces
| Interface | Description |
|---|---|
| SofficeEngineOptions | Options for sofficeEngine. |
Functions
| Function | Description |
|---|---|
| sofficeEngine | Construct the LibreOffice engine. |