Pdf : add small comment

This commit is contained in:
ganfra
2023-06-02 16:48:17 +02:00
parent 0a762dc232
commit ba3b0eed80

View File

@@ -50,6 +50,7 @@ class PdfPage(
private var loadJob: Job? = null
init {
// We are just opening and closing the page to extract data so we can build the Loading state with the correct dimensions.
pdfRenderer.openPage(pageIndex).use { page ->
renderHeight = (page.height * (renderWidth.toFloat() / page.width)).toInt()
}