getVisiblePdfRect

open fun getVisiblePdfRect(@NonNull targetRect: RectF, @IntRange(from = 0) pageIndex: Int): Boolean

Sets targetRect to contain the visible PDF rect of the given pageIndex. If the pageIndex is not visible on the screen, targetRect won't be modified and the method will return false.

Return

true if the page visible and its visible rect was written to targetRect, or false if the page is not visible and targetRect was not modified.

Parameters

targetRect

RectF instance which will be set to the visible PDF rect.

pageIndex

Target page number. 0-based index.