convertPdfPointToViewPoint abstract method

Future<Offset> convertPdfPointToViewPoint(
  1. int pageIndex,
  2. Offset point
)

Converts a point from PDF page coordinates to the page view's coordinate space.

The returned Offset is in logical pixel coordinates (device- independent pixels), relative to the top-left corner of the rendered page within the viewer. These are the same coordinates reported by gesture or tap callbacks on the page view widget.

pageIndex is zero-based.

Implementation

Future<Offset> convertPdfPointToViewPoint(int pageIndex, Offset point);