renderToBitmap
fun renderToBitmap(page: PdfPage, scale: Double = 1.0, background: Int = Color.WHITE): Bitmap(source)
Render with the default allocation ceiling.
fun renderToBitmap(page: PdfPage, scale: Double = 1.0, background: Int = Color.WHITE, maxPixels: Long): Bitmap(source)
Render with an explicit allocation ceiling.