contentTopInWindowPx

val contentTopInWindowPx: StateFlow<Int?>

The top edge of the rendered page in window pixels, updated as the document scrolls, zooms and changes page; null while the document is not laid out.

This is the page itself, not the document view's bounds — above the page sits the viewer's own background, which is what a fit-to-page zoom leaves under the status bar. Chrome that is only worth drawing when real page content is behind it, such as com.pspdfkit.compose.toolbar.composables.NutrientStatusBarScrim, keys off this rather than off the view being edge-to-edge (which it nearly always is).