KPDF installs as two Gradle dependencies. Declare both in your shared module’s build file, sync, and you are ready to use the SDK.Documentation Index
Fetch the complete documentation index at: https://mahmoud-b28887f9.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Current version
The current stable release is 1.0.0.Add the dependencies
Add both modules to your shared Kotlin Multiplatform module’s dependencies block:You typically need both
kpdf-core and kpdf-compose together. kpdf-core is the engine — it provides PDF loading, rendering, caching, and state APIs. kpdf-compose is the UI layer — it provides KPdfViewer, KPdfViewerToolbar, KPdfThumbnailStrip, and rememberPdfViewerState, plus the platform save/open flow bindings for Android and iOS. Without kpdf-compose, you have no Compose viewer components.libs.versions.toml first:
What each module provides
| Module | What it gives you |
|---|---|
kpdf-core | KPdfSource, KPdfViewerConfig, KPdfViewerState, KPdfFactory, rendering, caching, navigation, zoom, save/export, and open state APIs |
kpdf-compose | KPdfViewer, KPdfViewerToolbar, KPdfThumbnailStrip, rememberPdfViewerState, and platform save/open flow bindings for Android and iOS |