encodeToPng
Convenience: render and return PNG bytes.
fun encodeToPng(page: PdfPage, scale: Double = 1.0, background: Int = Color.WHITE, maxPixels: Long): ByteArray
encodeToPng with an explicit allocation ceiling.
Convenience: render and return PNG bytes.
encodeToPng with an explicit allocation ceiling.