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