Measurement

Apryse SDK has built-in tools allowing you to create measurement annotations and provides a UI to modify common properties.

Customizing PDF measurement tool in Android

This tutorial only applies to Xamarin.Android. See Xamarin.iOS equivalent here .

By default, creating and editing measurement annotations in the drop-in components DocumentActivity and PDFViewCtrlTabHostFragment are automatically enabled unless disabled using ToolManagerBuilder. You can learn more about configuring ToolManager here.

To create a measurement annotations, tap and hold on an area of the PDF without any text or annotations to bring up the long-press quick menu. Then find a group called Measure in the overflow menu.

There are three measurement tools:

Apryse Docs Image

Enable end point snapping

Snapping is useful when you want to precisely place annotations in documents by snapping them to lines & objects. The point snapping API can be used to easily place annotations to the exact location.

Apryse Docs Image

This is disabled by default and can be enabled as follows:

1mToolManager.SetSnappingEnabledForMeasurementTools(true);

Calibration

The Calibrate menu option for measurement annotations allows you to determine a PDF's scale, enabling accurate measurements.

Apryse Docs Image

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales
PDF Measurement Tools in Xamarin | Apryse documentation