CoreGraphicsCanvas
PdfCanvas backed by an iOS / macOS CGContextRef. Pure CoreGraphics — no Compose, no Skia. The natural choice for native iOS apps using UIKit or SwiftUI; pass the context from your custom UIView's drawRect: or the UIGraphicsImageRenderer.image { ctx in … } block straight in.
Pair with ApplePdfRasterizer for the "give me a PNG" headless use case.
Memory: every Core Foundation / Core Graphics ref we allocate (gradient, colour space, image, CFData) is paired with a release call. Nothing escapes — Kotlin/Native objects don't leak, and we never hand a CG ref to caller code.
Functions
Link copied to clipboard
open fun applySoftMask(kind: <Error class: unknown class>, maskBBox: <Error class: unknown class>, maskCtm: <Error class: unknown class>, render: () -> Unit, renderMask: (<Error class: unknown class>) -> Unit)
Link copied to clipboard
open fun beginTransparencyGroup(bbox: <Error class: unknown class>, ctm: <Error class: unknown class>, isolated: Boolean, knockout: Boolean, alpha: Double, blendMode: <Error class: unknown class>)
Link copied to clipboard
Link copied to clipboard
open fun fillShading(shading: <Error class: unknown class>, ctm: <Error class: unknown class>, clipPath: <Error class: unknown class>?, alpha: Double, blendMode: <Error class: unknown class>)
Link copied to clipboard