Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What libraries are there that can be included in a commercial Android client app

ID: 657710 • Letter: W

Question

What libraries are there that can be included in a commercial Android client application for simple viewing (editing not required) of doc, docx, xls, xlsx, ppt, pptx, odt, pdf, rtf?

Preferably free or inexpensive. Must be well maintained and without critical bugs.

I've researched quite a few libs (docx4j, aspose.com), and solutions such as the Google doc viewer API, but I have no definite answer yet and I may have missed something.

I can't use simple VIEW intents because I want to be able to show my app's branding on top of it and prevent the viewer from editing that file. Even some converter that reliably converts these file to HTML so I can show the file via webview would be fine.

Explanation / Answer

Depending on whether you can work online or not might certainly narrow some of your options.
As Nicolas suggested, something based on OpenOffice/LibreOffice is a good starting point - that would let you get the various document formats rendered well into PDF for view-only ability. You could use JODConverter (opensource) or Docmosis (commercial) to do this. If you wanted to go to HTML5 display instead, IDRSolutions jpdf2html5 (commercial) converter is good.

If you have time, you could roll your own REST API over a converter service and host it yourself based on the same technologies.

Please note I work for the company that created Docmosis.

I hope that is useful.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote