Get Started

play_arrow

Learn more

play_arrow

Common use cases

play_arrow

Open a document

play_arrow

Save a document

play_arrow

Viewer

play_arrow

UI Customization

play_arrow

Annotations

play_arrow

Collaboration

play_arrow

Forms

play_arrow

Signature

play_arrow

Measurement

play_arrow

PDF.js Express REST API

play_arrow

Measure tools with PDF.js Express

PDF documents allow line, polyline and polygon annotations to contain measurement information to measure the distance, perimeter and area of parts of a document. A scale is defined so that, for example, one inch on the document is defined as one foot, allowing you determine the actual size of things in an architectural diagram once you know the scale.

PDF.js Express Web Viewer has built-in tools allowing you to create these annotations and provides a UI to modify common properties. There is also a more advanced programmatic API for fine grained control.

Get started

Setup PDF.js Express Web Viewer for measurement
To setup PDF.js Express Web Viewer to display and enable measurements.

Measurement tools
To set measurement properties for scale and precision using the UI or programmatically.

Measurement annotations
To create measurement annotations using the UI.