get View To Page Transformation
abstract fun getViewToPageTransformation(@IntRange(from = 0 ) pageIndex: Int, @Nullable reuse: Matrix): Matrix
Returns a Matrix for transforming view coordinates to PDF coordinates. The matrix can be used to map view coordinates on the fragment to coordinates on the PDF page at
pageIndex
. Note that this method may throw IllegalStateException
if no document has been loaded yet, or if the requested page is not yet part of the fragment's view hierarchy.
Return
Transformation matrix for converting page coordinates to view coordinates.
Parameters
page Index
Number of the page for which to retrieve the transformation (starting at 0
).
reuse
A matrix object to reuse for calculation. May be null
if a new matrix should be created.
Throws
if there is no transformation for the given page
(e.g. the document is not yet loaded, or the specified page doesn't exist).