Some test text!

Setting up measurement

When creating a new instance of WebViewer, the enableMeasurement property needs to be set to true to display the measurement annotation tools in the UI

var viewer = new PDFTron.WebViewer({
  ... // other options
  enableMeasurement: true
}, viewerElement);

Besides passing in a constructor option, measurement can be toggled using the WebViewer API with the enableMeasurement and disableMeasurement functions.

var viewer = new PDFTron.WebViewer({
  ... // other options
}, viewerElement);

viewerElement.addEventListener('ready', function() {
  viewer.getInstance().enableMeasurement();
});

Get the answers you need: Support