PdfViewState
Observable state + control surface of a PdfView.
Everything a navigation/zoom widget needs lives here, so widgets are just composables that take a PdfViewState — place them inside the viewport (via PdfView's overlay slot), next to it, or anywhere else in your tree.
Reads (currentPage, zoom, panOffset…) are snapshot-state backed and recompose their readers automatically. Navigation suspends until finished; calls made before the state is attached to a composed PdfView are remembered and applied on attach.
Properties
The page the viewport currently rests on: the snapped page in paged mode, the page nearest the viewport centre in continuous mode.
Current zoom factor. 1 = fit. Bounded by PdfZoomSpec.minZoom/maxZoom.
Functions
Animates to page (coerced into range).
Jumps to page (coerced into range) without animation.