drawImage

fun drawImage(image: PdfImage, x: Double, y: Double, width: Double, height: Double): ContentStreamBuilder

Draw image into the rectangle (x, y) → (x+width, y+height) in user space (x, y is the bottom-left corner). Wrapped in its own q … Q so the image transform doesn't leak into later drawing.

Only available through PdfBuilder.page; other contexts throw because they don't register image resources.