11

We are developing an application in which we need to display a Presentation (PowerPoint) file (.ppt or .pptx)..
We have heard that no API is available in Android to display Presentation files within our application.
So we tried to convert that Presentation file to ".mht" format as we have heard that WebView is capable of showing .mht files and .mht can have Presentations also..

Now my question is: how can we view .mht files properly in Webview..?

We already have referred these links mentioned below:

WebView Load Mht file in Android
Display .mht file on android
Android WebView -> Display WebArchive

Somehow the links mentioned above have helped, but not as expected..
Any further help would be appreciated..

Community
  • 1
  • 1
Bhavin Nattar
  • 3,189
  • 2
  • 22
  • 30
  • Is extracting the MHT a viable option? A MHT is just a zipped web page (html, css, images...). Can't you just unzipit and bundle it in yout APP? – NiloVelez May 05 '15 at 06:21
  • You cannot view **.mht** files in the WebView and expect to omit the unnecessary padding characters and text (i.e. html headers footers, content-type and mime info). That's just the way WebView works with .mht files... – IgorGanapolsky Nov 03 '17 at 19:00
  • I'm not sure what is in your PowerPoint presentation... but could you just export the PPT(X) file to HTML? e.g. https://stackoverflow.com/a/6274299/6144 – scunliffe Jul 16 '18 at 17:00
  • If your application works online, Microsot OneDrive is capable of serving the PPTX files. Just share the PPTX into OneDrive and get the code to embed it on any webpage. – Ali Sheikhpour Oct 08 '18 at 20:27
  • Use should just use javascript libraries like "[reveal.js](https://revealjs.com/?transition=convex#/transitions)" to your your app. this will be simpler... Else you could use css transitions for animating page loads. Powerpoints are simple carousels with animations nothing else. Just use any carousel library like slider.js or slick.js if all you need is a swipe gestured slide transitions. – YourPalNurav Feb 07 '19 at 08:41

0 Answers0