Package-level declarations
Types
PdfCanvas backed by a Compose Multiplatform DrawScope.
Platform-supplied image decoder. KitePDF's core stays pure-Kotlin-stdlib; actual JPEG / PNG / etc. decoding rides on whatever the host platform already provides — Skia on Desktop, the OS framework on Android / iOS, createImageBitmap on JS.
Imperative page → ImageBitmap pipeline. This is the raster engine behind PdfView; it is public so apps with custom viewers (own pagers, thumbnail grids, PNG export jobs) don't have to re-implement the CTM/flip/hairline math themselves.
How PdfView turns pages into pixels. Pick a variant; each carries only the knobs that actually apply to it, so there are no settings that silently do nothing. Defaults to Rasterized via PdfRenderSpec.Default.
Colours used by PdfView.
Observable state + control surface of a PdfView.
Functions
Encode this ImageBitmap to PNG bytes — the "saveable image" counterpart of PdfView's onPageRendered callback. Write the result to a file, share it, upload it; PNG is lossless so the export is pixel-identical to what was on screen.
Previous / "x of y" / next pill. Buttons auto-disable at the ends.
"current / total" page readout. Recomposes as the user scrolls or swipes.
Convenience entry point: remembers its own state internally.
THE KitePDF viewer composable.
PdfRasterizer wired to the composition's density, layout direction and font resolver.
Remembers a PdfViewState for document. Hoist it to drive a PdfView from anywhere — navigation buttons in your top bar, a zoom slider, a HUD overlay — the state object is the single point of control.