encodeToPng

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

Convenience: render and return PNG bytes.