I am wanting to display a composable just above and below the PDF viewer depending on if the user is viewing the first or last page. Looking at the available PdfReaderState properties, it looks like the best thing I could use is a check of the currentPage alongside the pdfPageCount to decide when to surface the composable.
Perhaps there is some kind of enhancement that could make this usecase easier?
I am wanting to display a composable just above and below the PDF viewer depending on if the user is viewing the first or last page. Looking at the available
PdfReaderState
properties, it looks like the best thing I could use is a check of thecurrentPage
alongside thepdfPageCount
to decide when to surface the composable.Perhaps there is some kind of enhancement that could make this usecase easier?