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 |