NoopCanvas
Backend that ignores everything — handy for benchmarks and content-stream sanity tests.
Functions
Link copied to clipboard
open fun applySoftMask(kind: SoftMask.Kind, maskBBox: Rectangle, maskCtm: Matrix, render: () -> Unit, renderMask: (PdfCanvas) -> Unit)
Link copied to clipboard
Link copied to clipboard
open fun beginTransparencyGroup(bbox: Rectangle, ctm: Matrix, isolated: Boolean = false, knockout: Boolean = false, alpha: Double = 1.0, blendMode: BlendMode = BlendMode.Normal)
Open a transparency group (ISO 32000-1 §11.4). Subsequent paints accumulate into an offscreen layer; endTransparencyGroup composites the layer back onto the parent with blendMode + alpha.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun fillShading(shading: PdfShading, ctm: Matrix, clipPath: PdfPath?, alpha: Double = 1.0, blendMode: BlendMode = BlendMode.Normal)