Why Is Rendering Office Documents So Hard? I Built Docxion to Find Out
Описание и применение
Docxion позволяет интегрировать просмотр Office‑документов в Android‑приложения и веб‑сайты без внешних сервисов и лицензий, используя открытый код и простые API.
Задача
Integrating Microsoft Office document viewing into mobile or web apps is difficult due to complex rendering stacks, proprietary SDKs, and licensing constraints.
Результат
Docxion enables developers to embed Office document viewing with minimal effort, avoiding external services and licensing fees while providing a native‑looking API.
Рабочий процесс
- 1. Add Docxion Android library to Gradle.
- 2. Include DocxionViewer composable in UI.
- 3. Store the exposed DocxionWebViewApi via onApiCreated callback.
- 4. Call api.openFile(uri) to load a document.
- 5. Use api methods (goToPage, setZoom, search, etc.) to interact.
- 6. Handle callbacks (page change, zoom, selection) via AndroidCallbacks.
- 7. Optionally change theme or print via api.setTheme / api.print.
Доказательства
Docxion is an open‑source document viewer focused on Microsoft Office formats, with an Android/Jetpack Compose integration and a reusable TypeScript/React viewer underneath.
Docxion is Apache 2.0 licensed.
- Дата записи: 2026-09-14T18:46:05.370Z