---
title: "Measure distance in PDF on Android | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/android/measurements/measure-distance/"
md_url: "https://www.nutrient.io/guides/android/measurements/measure-distance.md"
last_updated: "2026-06-08T17:26:16.277Z"
description: "Learn to measure distances in PDFs on Android using Nutrient Android SDK. Discover methods for measuring between two points or multiple connected points effectively."
---

# Measure distance in a PDF on Android

Measure distance in a PDF using Nutrient Android SDK starting with version 8.4. To measure distance in your 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.

Measure distance in one of the following ways:

- [Measure the distance between two points](#measuring-distance-between-two-points)

- [Measure the distance between multiple connected points](#measuring-distance-between-multiple-connected-points)

## 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 the steps below:

1. Touch and hold the annotation 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 distance between two points programmatically, use the [`LineAnnotation` shape constructor](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.annotations/-line-annotation/-line-annotation.html), which takes a [`Scale` object](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.annotations.measurements/-scale/index.html) and a [`FloatPrecision` object](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.annotations.measurements/-measurement-precision/index.html) as its parameters. For more information on scale and precision, refer to the [guide on configuring measurements](https://www.nutrient.io/guides/android/measurements/configure-measurements.md).

## Measuring distance between multiple connected 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 using the built-in UI, follow the steps below:

1. Touch and hold the annotation 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 [`PolylineAnnotation` shape constructor](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.annotations/-polyline-annotation/-polyline-annotation.html), which takes a [`Scale` object](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.annotations.measurements/-scale/index.html) and a [`MeasurementPrecision` object](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.annotations.measurements/-measurement-precision/index.html) as its parameters. For more information on scale and precision, refer to the [guide on configuring measurements](https://www.nutrient.io/guides/android/measurements/configure-measurements.md).

## Configuring measurements

For more information on configuring measurements, refer to the [guide on configuring measurements](https://www.nutrient.io/guides/android/measurements/configure-measurements.md).
---

## Related pages

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

