toNormalizedPoint

abstract fun toNormalizedPoint(@NonNull point: PointF, @IntRange(from = 0) pageIndex: Int): PointF

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

Parameters

point

Point in raw PDF coordinates on the given pageIndex that should be converted to normalized 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.