3 ms·
Easily using WebODF, JS library for displaying and editing ODF files [Part 1]
- deleted 12y ago[deleted]
- oever 12y agoWebODF simply loads the ODF xml as is and adds CSS to make it render well. This means that no information is lost. The same approach does not work well with OOXML which makes it harder to write a similar library for those formats. For the binary formats the same approach is completely out of the question. One way to build similar functionality for those formats is to take existing ODF converter code from Calligra or LibreOffice and port it to compile nicely with emscripten. The result can then be edited with webodf.
- oever 12y agoOne of the developers here. The github repo is not linked in the blog, but you can find the code here: https://github.com/kogmbh/webodf/ https://github.com/kogmbh/webodf/ WebODF.js is can run entirely from your own server so there's no need to depend on 3rd party services. Happy to answer any questions!