convertViewPointToPdfPoint abstract method

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

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

point must be in logical pixel coordinates (device-independent pixels), relative to the top-left corner of the rendered page within the viewer. This corresponds to the position reported by gesture or tap callbacks on the page view widget.

pageIndex is zero-based.

Implementation

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