ViewProjection

interface ViewProjection

Projection between the view coordinate space and the PDF coordinate space. To retrieve an instance of this, use getViewProjection. For more information on coordinate spaces and coordinate conversions, please refer to our Coordinate Space Conversion online guide.

Functions

Link copied to clipboard
abstract fun getPageToViewTransformation(@IntRange(from = 0) pageIndex: Int, @Nullable reuse: Matrix): Matrix
Returns a Matrix for transforming PDF coordinates to view coordinates.
Link copied to clipboard
abstract fun getViewToPageTransformation(@IntRange(from = 0) pageIndex: Int, @Nullable reuse: Matrix): Matrix
Returns a Matrix for transforming view coordinates to PDF coordinates.
Link copied to clipboard
abstract fun toPdfPoint(@NonNull point: PointF, @IntRange(from = 0) pageIndex: Int)
Converts the coordinates stored within point from the view coordinate space (i.e.
Link copied to clipboard
abstract fun toPdfRect(@NonNull rect: RectF, @IntRange(from = 0) pageIndex: Int)
Converts the view coordinates stored in rect to PDF coordinates on the given pageIndex.
Link copied to clipboard
abstract fun toViewPoint(@NonNull point: PointF, @IntRange(from = 0) pageIndex: Int)
Converts the coordinates stored within point from the PDF coordinate space of the given pageIndex to the view coordinate space (i.e.
Link copied to clipboard
abstract fun toViewRect(@NonNull rect: RectF, @IntRange(from = 0) pageIndex: Int)
Converts the PDF coordinates stored in rect (of the given pageIndex) to view coordinates.