RecordingCanvas
Records every device call — useful for tests + verifying operator dispatch.
Functions
Link copied to clipboard
open fun applySoftMask(kind: SoftMask.Kind, maskBBox: Rectangle, maskCtm: Matrix, render: () -> Unit, renderMask: (PdfCanvas) -> Unit)
Link copied to clipboard
open override fun beginPage(widthPt: Double, heightPt: Double, deviceCtm: Matrix): <Error class: unknown class>
Set up for a page render — called once before any draw call, with the page dimensions (in PDF user units, 1pt = 1/72 inch) and the desired device CTM (e.g. flip Y and scale to fit a target rectangle).
Link copied to clipboard
open override fun beginTransparencyGroup(bbox: Rectangle, ctm: Matrix, isolated: Boolean, knockout: Boolean, alpha: Double, blendMode: BlendMode)
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)