toRawRect

abstract fun toRawRect(@NonNull rect: RectF, @IntRange(from = 0) pageIndex: Int): RectF

Maps a normalized PDF rect to a raw PDF rect. Converts the coordinates stored within rect from the normalized PDF coordinate space of the given pageIndex to the raw PDF coordinate space (of the same page). This method modifies rect in place.

Parameters

rect

Rect in normalized PDF coordinates on the given pageIndex that should be converted to raw PDF coordinates of the same page.

pageIndex

Target page for the conversion (0 denotes the first page).

Throws

If the specified page doesn't exist.