Replace LibreOffice headless for ODT export with odf-kit #2217
GitHubNewbie0
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since Docs is built on BlockNote/ProseMirror, odf-kit's tiptapToOdt() can convert your editor JSON directly to a valid ODT file — no LibreOffice, no server roundtrip, MIT licensed. The conversion runs entirely in the browser or Node.js, which fits well with Docs' architecture and the French government's ODF mandate.
typescriptimport { tiptapToOdt } from "odf-kit";
const bytes = await tiptapToOdt(editor.getJSON(), { pageFormat: "A4" });
https://github.com/GitHubNewbie0/odf-kit
Beta Was this translation helpful? Give feedback.
All reactions