# Namespace: Tools

## Tools

Contains tools for pan scrolling, text selection, annotation editing and annotation creation. You can access it as follows:

### Examples

    // 5.1 and after
    WebViewer(...)
      .then(function(instance) {
        var Tools = instance.Tools;
        // Tools.SomeClass
      });

    // 4.0 ~ 5.0
    var viewerElement = document.getElementById('viewer');
    var viewer = new PDFTron.WebViewer(...);

    viewerElement.addEventListener('ready', function() {
      var viewerIframe = document.querySelector('iframe');
      var Tools = viewerIframe.contentWindow.Tools;
      // Tools.SomeClass
    });

### Classes

AnnotationEditTool
AnnotationSelectTool
AreaMeasurementCreateTool
ArrowCreateTool
CalloutCreateTool
DistanceMeasurementCreateTool
EllipseCreateTool
FreeHandCreateTool
FreeTextCreateTool
GenericAnnotationCreateTool
LineCreateTool
MarqueeZoomTool
PanTool
PerimeterMeasurementCreateTool
PolygonCloudCreateTool
PolygonCreateTool
PolylineCreateTool
RectangleCreateTool
RedactionCreateTool
SignatureCreateTool
StampCreateTool
StickyCreateTool
TextAnnotationCreateTool
TextHighlightCreateTool
TextSelectTool
TextSquigglyCreateTool
TextStrikeoutCreateTool
TextTool
TextUnderlineCreateTool
Tool

### Members

#### <static> PageCoordinate

  Represents a point on a page

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `pageIndex` | number | the 0-based page value
  `x` | number | the x offset of this point relative to the top left corner of the page
  `y` | number | the y offset of this point relative to the top left corner of the page

#### Search results