pageRectToViewport

fun pageRectToViewport(pageIndex: Int, rect: KiteRectangle): Rect?(source)

hitTest run backwards for a rectangle: rect, in the page space of the page pageIndex, such as the rectangle of a PDF annotation, to the viewport pixels it is painted at. Null while that page has no place in the layout. See displayRectToViewport.