A PPTX viewer for your Android app
Show PowerPoint decks inside an Android app with animations, Morph and video playing, offline. No PPTX SDK to bundle: convert through an API, display in WebView.
An API and a webview, not an on-device SDK
Android has no built-in PowerPoint viewer, so apps usually hand the file to another app, load an online viewer, or bundle a document SDK. SlideKiln is a fourth option. It is a conversion API, not an on-device library: your backend turns each deck into a self-contained HTML5 package once, and your app shows it in the system WebView. The deck plays inside your own UI, and nothing is added to your APK.
| Open in another app (Intent) | Online viewer in a WebView | On-device PPTX SDK | SlideKiln + WebView | |
|---|---|---|---|---|
| Stays inside your app | ✕ No | ✓ Yes | ✓ Yes | ✓ Yes |
| Animations, transitions & Morph | Partial | Partial | Partial | ✓ Yes |
| Works offline | Partial | ✕ No | ✓ Yes | ✓ Yes |
| Works when no Office app is installed | ✕ No | ✓ Yes | ✓ Yes | ✓ Yes |
| Your own UI and controls | ✕ No | ✕ No | ✓ Yes | ✓ Yes |
| Slide-change events for analytics | ✕ No | ✕ No | ✓ Yes | ✓ Yes |
| Same rendering as iOS and web | ✕ No | ✓ Yes | Partial | ✓ Yes |
| Added to your APK | Nothing | Nothing | An SDK | Nothing |
How it fits your app
Convert on your server
Your backend sends the .pptx (or a URL to it) to the SlideKiln API and gets back a zip: index.html plus assets.
Cache the package
Store the zip in your own storage or CDN. It is a plain static folder with no licence check and no call back to SlideKiln.
Show it in the webview
The app downloads the package once, unzips it, and loads index.html from local files. From then on it works offline.
Load a deck in Android WebView
Download the package zip from your backend, unzip it into internal storage (java.util.zip is enough), and serve the folder to WebView through WebViewAssetLoader. That gives the deck an https origin, which avoids the file:// access restrictions on current Android versions.
import androidx.webkit.WebViewAssetLoader
import androidx.webkit.WebViewClientCompat
// packageDir: the unzipped SlideKiln package in context.filesDir
val assetLoader = WebViewAssetLoader.Builder()
.addPathHandler("/deck/", WebViewAssetLoader.InternalStoragePathHandler(context, packageDir))
.build()
webView.settings.javaScriptEnabled = true
webView.settings.mediaPlaybackRequiresUserGesture = false // let deck video autoplay
webView.webViewClient = object : WebViewClientCompat() {
override fun shouldInterceptRequest(view: WebView, request: WebResourceRequest) =
assetLoader.shouldInterceptRequest(request.url)
}
webView.loadUrl("https://appassets.androidplatform.net/deck/index.html")Control the deck from Kotlin
Every package exposes window.SlideKiln and fires slidekiln:slidechange events, so your native UI can own the controls: previous and next buttons, a progress bar, completion tracking.
// 1. Expose a native object to the deck
class DeckBridge(private val onSlide: (Int, Int) -> Unit) {
@JavascriptInterface
fun onSlide(index: Int, count: Int) = onSlide.invoke(index, count) // 1-based
}
webView.addJavascriptInterface(DeckBridge { index, count ->
runOnUiThread { progress.text = "$index / $count" }
}, "Android")
// 2. Forward slide changes once the page has loaded (onPageFinished)
webView.evaluateJavascript("""
window.addEventListener("slidekiln:slidechange", (e) =>
Android.onSlide(e.detail.index, e.detail.count));
""", null)
// 3. Drive the deck from native controls
webView.evaluateJavascript("window.SlideKiln.next()", null)
webView.evaluateJavascript("window.SlideKiln.goTo(7)", null)Full reference in the player API docs. Building for both platforms? See the iOS PPTX viewer guide and the overview for React Native, Flutter and Electron.
PPTX on Android: at a glance
- Integration
- SlideKiln REST API on your backend + android.webkit.WebView in the app. No AAR or native library
- Input
- .pptx (PowerPoint 2007 and later), up to 500 MB
- In the app
- A folder of static files: index.html, SVG, CSS, JS, fonts and H.264 video
- Offline
- Yes. The package makes no network requests once it is on the device
- Control
- window.SlideKiln next / prev / goTo(n) / current / count via evaluateJavascript; slidekiln:slidechange via @JavascriptInterface
- Also works in
- Jetpack Compose (AndroidView wrapping WebView), Android TV, kiosks and Chromebooks
- Price
- Free: 2 conversions a month. Pro $29: 35. Scale $149: 350. No per-app or per-device licence
Frequently asked questions
Is there a PPTX API or SDK for Android?
Android itself has no PowerPoint rendering API. Commercial document SDKs exist, and SlideKiln offers a different route: a REST API converts the deck to HTML5 on the server, and your app displays it in WebView. That keeps animations, Morph and video, works offline, and adds no native library to your APK.
Can Android WebView open a .pptx file directly?
No. WebView renders web content, not Office documents. Apps that appear to do this are loading an online viewer, which needs a network connection and sends the file to a third party. Converting the deck to HTML5 first lets WebView render it locally.
Does the deck work with no network connection?
Yes. A converted package is a static folder with relative URLs. WebViewAssetLoader serves it from internal storage, and the deck makes no network requests.
Does it work with Jetpack Compose?
Yes. Wrap WebView in an AndroidView composable and configure it the same way. The asset loader and JavaScript bridge are unchanged.
Which Android versions are supported?
Any device with a current Android System WebView, which updates through Google Play independently of the OS version. WebViewAssetLoader comes from the androidx.webkit library.
How do I get decks onto the device?
Convert on your backend, store the zip in your own storage, and have the app download it by content id. Cache it in internal storage and re-download only when your backend reports a newer version.
PowerPoint in your Android app, working offline.
Convert a .pptx, unzip the package into your app and watch it play in a webview. 2 free conversions a month, no credit card.
Start converting free