AndroidPdfBitmapRenderer
object AndroidPdfBitmapRenderer
Headless rendering on Android — produces an ARGB_8888 Bitmap sized to the page in pt units multiplied by scale. No Compose dependency.
Typical uses:
Custom View
onDraw(Canvas)overrides that paint the bitmap onto the screen.Generating cached page thumbnails on disk.
Pre-rendering pages off the main thread (call from a coroutine on Dispatchers.Default).
Functions
Link copied to clipboard
fun renderToBitmap(page: PdfPage, scale: Double = 1.0, background: Int = Color.WHITE): <Error class: unknown class>