Pdf : add small comment
This commit is contained in:
parent
26adc55ea9
commit
d878e7274d
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue