AndroidNativeCanvas
PdfCanvas backed by android.graphics.Canvas.
This is the right choice on Android when you don't want Compose: pass a Canvas from your custom View's onDraw(Canvas) override straight into the constructor and the renderer paints into it.
Pair with AndroidPdfBitmapRenderer for the "render a PDF page into a Bitmap" use case.
Blend modes require API 29+ (Paint.setBlendMode). The module's minSdk is bumped to 29 to match — see :kitepdf-native build.gradle.kts.
Functions
Link copied to clipboard
open override fun applySoftMask(kind: SoftMask.Kind, maskBBox: Rectangle, maskCtm: Matrix, render: () -> Unit, renderMask: (PdfCanvas) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun fillShading(shading: PdfShading, ctm: Matrix, clipPath: PdfPath?, alpha: Double, blendMode: BlendMode)