setZoom

fun setZoom(zoom: Float, focal: Offset = Offset.Unspecified)

Sets zoom immediately, clamped to the active PdfZoomSpec range.

Parameters

focal

viewport-space point to keep visually stationary (e.g. the pinch centroid or double-tap position). Unspecified = viewport centre.