PdfViewerView

fun PdfViewerView(document: PdfDocument, modifier: Modifier = Modifier, toolbar: PdfToolbarConfiguration = PdfToolbarConfiguration.Default, theme: PdfViewerTheme = PdfViewerTheme.Light, review: PdfReviewConfiguration? = null, onSave: (ByteArray) -> Unit? = null)

A drop-in viewer: the page, gestures and a configurable toolbar.

It drives a headless PdfViewer and owns no state of its own, so behaviour lives in one tested place and this layer can be rewritten without touching the contract underneath. An app that wants full control can use PdfViewer directly.