Package-level declarations

Types

Link copied to clipboard
class AndroidNativeCanvas(canvas: <Error class: unknown class>) : PdfCanvas

PdfCanvas backed by android.graphics.Canvas.

Link copied to clipboard

Headless rendering on Android — produces an ARGB_8888 Bitmap sized to the page in pt units multiplied by scale. No Compose dependency.

Link copied to clipboard

Headless rendering on Apple platforms (iOS, macOS, tvOS) — produces a PNG-encoded NSData sized to the page in pt × scale. Pure CoreGraphics + ImageIO, no UIKit/AppKit, no Compose dependency.

Link copied to clipboard

PdfCanvas backed by java.awt.Graphics2D. Pure JRE — no Skia, no Compose, no native binaries.

Link copied to clipboard

Headless raster output using AWT + ImageIO — no Skia, no Compose, no native binaries beyond what the JDK already ships. Perfect for:

Link copied to clipboard
class Canvas2dCanvas(ctx: <Error class: unknown class>)

PdfCanvas backed by a browser-side CanvasRenderingContext2D. Pure Kotlin/JS + DOM — no Compose for Web, no Skia/WASM bundle.

Link copied to clipboard
class CoreGraphicsCanvas(ctx: <Error class: unknown class>)

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.

Link copied to clipboard

Old name from 0.0.2, when this only shipped for iOS.