renderTo

fun renderTo(canvas: PdfCanvas, deviceCtm: Matrix = Matrix.IDENTITY)

Render this page into a PdfCanvas (typically the Compose binding's ComposeCanvas). deviceCtm is applied on top of user-space — pass an identity matrix for a 1pt = 1pt rendering, or a scaled / Y-flipped matrix to fit a UI surface.