Open kentonv opened 8 years ago
I think I now have a framework for loading javascript viewers, and .odt should be fairly easy to support. Unfortunately I wasn't able to find a Pages document parser in javascript, but would be happy to incorporate one if it exists. I hold out even less hope for Word documents; all of the viewers I've found are commercial except for one that has a weird "only-run-on-windows" license. (https://github.com/stephen-hardy/DOCX.js)
Of course there's a lot more software on the backend that could convert, but I'd prefer to keep backend processing to a minimum and I'm hesitant to pull in something like libreoffice due to the size.
@mnutt Wow, that's some good old "Microsoft classic" licensing.
FWIW libreoffice does have a headless mode that can do conversions:
https://gist.github.com/diogo-almeida/9339203
It would be interesting to find out just how much it bloats the spk.
What about putting the headless preview generator in its own app? Is that feasible, @kentonv ?
I was actually thinking something along those lines too; Davros is never going to be the best music player or slideshow or document editor, etc, but it would be great if it would seamlessly call out to those through powerbox.
Yeah this is likely to be possible someday. We need to:
I still feel there's a strong value to someday being able to straight upload a file to Sandstorm outside of any particular application, for very generic formats where many apps might be available to view/edit/etc. that file type. Similarly, then, there'd be cause for a type of Sandstorm app which exposes what file formats it knows how to work with.
Long-term, something sandboxed would be great but short-term I am currently looking into using libreoffice to generate previews. I can't promise anything until I actually get it working inside sandstorm, but I'm pretty hopeful.
A user (the same one who wanted PDF support) said it would be nice if .odt and .pages files could also be previewed. Obviously this would be a whole lot more complicated, but I imagine it would be feasible to find some open-source tool that can convert various formats to .pdf for display.