zoom To
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
focus X
x-coordinate of the focus point.
focus Y
y-coordinate of the focus point.
page Index
Page number.
target Scale
Final scale to zoom page to.
duration
Duration of the zoom animation (milliseconds).
Zoom to a specific rect on the given page.
Parameters
rect
Rect to zoom into.
page Index
Page number of the target page.
duration
Duration of the zoom animation in milliseconds.