Measure PDF Distance in MAUI

To measure distance in your MAUI app, contact the Sales team to add the Measurement Tools component to your license, or run the SDK in trial mode.

Measuring Distance between Two Points

Measure the distance between two points in one of the following ways:

Measuring Distance between Two Points Using the Built-In UI

To measure the distance between two points using the built-in UI, follow these steps:

  1. Click the measurement tools icon.

  2. Tap Distance.

  3. Draw a straight line between the two points you want to measure.

Measuring Distance between Two Points Programmatically

To measure the area of a rectangle programmatically, use the Line shape annotation, which has a MeasurementAttributes property on which you can configure the MeasurementScale and MeasurementPrecision properties. For more information on scale and precision, see the guide on configuring measurements.

Measuring Distance between Multiple Points

Measure the distance between multiple connected points in one of the following ways:

Measuring Distance between Multiple Connected Points Using the Built-In UI

To measure the distance between multiple connected points, follow these steps:

  1. Click the measurement tools icon.

  2. Tap Perimeter.

  3. Draw lines between the multiple points you want to measure.

Measuring Distance between Multiple Connected Points Programmatically

To measure the distance between multiple connected points programmatically, use the Polyline shape annotation, which has a MeasurementAttributes property on which you can configure the MeasurementScale and MeasurementPrecision properties. For more information on scale and precision, see the guide on configuring measurements.