---
title: "Measure distance in a PDF in MAUI | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/maui/measurements/measure-distance/"
md_url: "https://www.nutrient.io/guides/maui/measurements/measure-distance.md"
last_updated: "2026-05-15T19:10:05.048Z"
description: "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."
---

# Measure PDF distance in MAUI

To measure distance in your MAUI app, [contact the Sales team](https://www.nutrient.io/contact-sales) 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:

- [Using the built-in user interface (UI)](#measuring-distance-between-two-points-using-the-built-in-ui)

- [Programmatically](#measuring-distance-between-two-points-programmatically)

### 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`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Annotation.Shape.MeasurementAttributes.html) property on which you can configure the [`MeasurementScale`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Annotation.Shape.MeasurementAttributes.html#PSPDFKit_Sdk_Models_Annotation_Shape_MeasurementAttributes_MeasurementScale) and [`MeasurementPrecision`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Annotation.Shape.MeasurementAttributes.html#PSPDFKit_Sdk_Models_Annotation_Shape_MeasurementAttributes_Precision) properties. For more information on scale and precision, see the guide on [configuring measurements](https://www.nutrient.io/guides/maui/measurements/configure-measurements.md).

## Measuring distance between multiple points

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

- [Using the built-in user interface (UI)](#measuring-distance-between-multiple-connected-points-using-the-built-in-ui)

- [Programmatically](#measuring-distance-between-multiple-connected-points-programmatically)

### 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](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Annotation.Shape.Polyline.html), which has a [`MeasurementAttributes`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Annotation.Shape.MeasurementAttributes.html) property on which you can configure the [`MeasurementScale`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Annotation.Shape.MeasurementAttributes.html#PSPDFKit_Sdk_Models_Annotation_Shape_MeasurementAttributes_MeasurementScale) and [`MeasurementPrecision`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.Models.Annotation.Shape.MeasurementAttributes.html#PSPDFKit_Sdk_Models_Annotation_Shape_MeasurementAttributes_Precision) properties. For more information on scale and precision, see the guide on [configuring measurements](https://www.nutrient.io/guides/maui/measurements/configure-measurements.md).
---

## Related pages

- [Configure PDF measurements in MAUI](/guides/maui/measurements/configure-measurements.md)
- [Measure distance and area in a PDF in MAUI](/guides/maui/measurements.md)
- [Measure PDF area in MAUI](/guides/maui/measurements/measure-area.md)

