zoomTo

open fun zoomTo(focusX: Int, focusY: Int, @IntRange(from = 0) pageIndex: Int, targetScale: Float, duration: Long)

Zoom to the given scale focused on the given point in PDF coordinates.

Parameters

focusX

x-coordinate of the focus point.

focusY

y-coordinate of the focus point.

pageIndex

Page number.

targetScale

Final scale to zoom page to.

duration

Duration of the zoom animation (milliseconds).


open fun zoomTo(rect: RectF, @IntRange(from = 0) pageIndex: Int, duration: Long)

Zoom to a specific rect on the given page.

Parameters

rect

Rect to zoom into.

pageIndex

Page number of the target page.

duration

Duration of the zoom animation in milliseconds.