renderToBitmap

fun renderToBitmap(page: PdfPage, scale: Double = 1.0, background: Int = Color.WHITE): Bitmap

Render with the default allocation ceiling.


fun renderToBitmap(page: PdfPage, scale: Double = 1.0, background: Int = Color.WHITE, maxPixels: Long): Bitmap

Render with an explicit allocation ceiling.