Vectorized

data class Vectorized(val hairlineWidthPx: Float = 1.0f) : PdfRenderSpec

Re-execute each page's content stream into a live Canvas every composition, transformed by zoom/pan via the same GPU layer — no bitmap (lower memory), resolution-independent quality at rest on every platform. On Android the vector display list replays under the live transform, so it stays crisp even mid-pinch; on Skia targets (iOS/desktop/web) the layer is texture-cached, so deep in-gesture zoom softens until the draw re-runs. Per-page draw cost scales with content complexity. Best for simple pages, deep-zoom crispness, and low memory.

Parameters

hairlineWidthPx

minimum stroke width in device pixels. The engine floors thin strokes here so sub-pixel rules (ECG traces, fine borders) stay visible; 1 = the ISO hairline. There is no supersampling knob — vector output is already resolution-independent.

Constructors

Link copied to clipboard
constructor(hairlineWidthPx: Float = 1.0f)

Properties

Link copied to clipboard