convertPdfPointToViewPoint method

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

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

@override
Future<Offset> convertPdfPointToViewPoint(int pageIndex, Offset point) async {
  throw UnimplementedError(
      'convertPdfPointToViewPoint is not implemented on this platform.');
}