> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/android/ui-customization/tool-subclasses.md).

# Tool class hierarchy

Explore a variety of Tool classes for document viewer interaction, from AnnotEdit to RulerCreate. Enhance functionality and customize with these tools. The Apryse Android SDK streamlines secure docume

Each class below either directly or indirectly inherits from the abstract [Tool](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/Tool.html) class. Each Tool class below provides different functionality for interacting with the document viewer and they can be extended to add custom functionality.

## Reference

* [`AnnotEdit`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/AnnotEdit.html): Allows one to edit a selected annotation. This includes such operations as moving and resizing.
  * [`AnnotEditLine`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/AnnotEditLine.html): Allows one to edit a selected line or arrow. This includes such operations as moving and resizing.
  * [`AnnotEditAdvancedShape`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/AnnotEditAdvancedShape.html): Allows one to edit a selected [Polyline](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/PolyLine.html), [Polygon](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Polygon.html), Cloud, or Callout.
* [`FormFill`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/FormFill.html): Allows one to fill forms.
* [`FreeTextCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/FreeTextCreate.html): Creates [FreeText](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/FreeText.html) annotations.
  * [`CalloutCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/CalloutCreate.html): Creates [FreeText](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/FreeText.html) annotations with sub type Callout.
  * [`FreeTextSpacingCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/FreeTextSpacingCreate.html): Creates [FreeText](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/FreeText.html) annotations with variable letter spacing.
  * [`FreeTextDateCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/FreeTextDateCreate.html): Creates [FreeText](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/FreeText.html) annotations with a specific date.
* [`LinkAction`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/LinkAction.html): Handles jumping to a link when a [Link](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Link.html) annotation is single tapped.
* [`Pan`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/Pan.html): The Pan tool selects a tapped-on annotation and switches to the Annotation Editing Tool on a single-tap event, and brings up the annotation creation menu upon a long-press event.
* [`RichMedia`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/RichMedia.html): Plays video when an annotation with [RichMedia](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/Annot.html#e_RichMedia) is tapped.
* [`Signature`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/Signature.html): Creates [Signature](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/Annot.html#e_Stamp) annotations.
  * [`DigitalSignature`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/DigitalSignature.html): The purpose of this tool is to demonstrate how to digitally sign a document by using one of its signature fields.
* [`SimpleShapeCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/SimpleShapeCreate.html): The base class for several shape creation classes, e.g., LineCreate, OvalCreate, etc.
  * [`AdvancedShapeCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/AdvancedShapeCreate.html): The base class for several shape creation classes, e.g., PolylineCreate, PolygonCreate, CloudCreate.
    * [`PolylineCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/PolylineCreate.html): Creates [Polyline](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/PolyLine.html) annotations.
      * [`PerimeterMeasureCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/PerimeterMeasureCreate.html): Creates [Polyline](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/PolyLine.html) annotations but with measurement dictionary.
    * [`PolygonCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/PolygonCreate.html): Creates [Polygon](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Polygon.html) annotations.
      * [`AreaMeasureCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/AreaMeasureCreate.html): Creates [Polygon](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Polygon.html) annotations but with measurement dictionary.
    * [`CloudCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/CloudCreate.html): Creates [Polygon](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Polygon.html) annotations with cloud border effect.
  * [`ArrowCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/ArrowCreate.html): Creates [Line](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Line.html) annotations but with arrow ending style.
    * [`RulerCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/RulerCreate.html): Creates [Line](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Line.html) annotations but with measurement dictionary.
  * [`RectCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/RectCreate.html): Creates Rectangle annotations.
    * [`CheckboxFieldCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/CheckboxFieldCreate.html): Creates [CheckBoxWidget](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/CheckBoxWidget.html).
    * [`RectLinkCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/RectLinkCreate.html): Creates rectangular [Link](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Link.html) annotations.
    * [`SignatureFieldCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/SignatureFieldCreate.html): Creates [SignatureWidget](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/SignatureWidget.html) annotations.
    * [`TextFieldCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextFieldCreate.html): Creates [TextWidget](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/TextWidget.html).
      * [`ListBoxFieldCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/ListBoxFieldCreate.html): Creates [ListBoxWidget](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/ListBoxWidget.html).
      * [`ComboBoxFieldCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/ComboBoxFieldCreate.html): Creates [ComboBoxWidget](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/ComboBoxWidget.html).
    * [`RectRedactionCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/RectRedactionCreate.html): Creates rectangular [Redaction](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Redaction.html) annotations.
    * [`RadioGroupFieldCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/RadioGroupFieldCreate.html): Creates [RadioButtonWidget](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/RadioButtonWidget.html).
    * [`RectAreaMeasureCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/RectAreaMeasureCreate.html): Creates [Polygon](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Polygon.html) annotations but with measurement dictionary and resize as a rectangle.
  * [`Eraser`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/Eraser.html): Erases [Ink](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Ink.html) annotations.
  * [`FreehandCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/FreehandCreate.html): Creates [Ink](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Ink.html) annotations that supports variable width stroke.
  * [`LineCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/LineCreate.html): Creates [Line](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Line.html) annotations.
  * [`OvalCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/OvalCreate.html): Creates [Circle](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Circle.html) annotations.
  * [`StickyNoteCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/StickyNoteCreate.html): Creates [Sticky Note](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Text.html) annotations.
  * [`Stamper`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/Stamper.html): Creates [Stamper](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/Annot.html#e_Stamp) annotations.
    * [`RubberStampCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/RubberStampCreate.html): Creates [RubberStamp](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/RubberStamp.html) annotations.
* [`SimpleTapShapeCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/SimpleTapShapeCreate.html): The base class for annotation creation classes through tap.
  * [`FileAttachmentCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/FileAttachmentCreate.html): Creates [FileAttachment](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/FileAttachment.html) annotations.
  * [`SoundCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/SoundCreate.html): Creates [Sound](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Sound.html) annotations.
* [`TextHighlighter`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextHighlighter.html): Can be used to highlight all search results.
* [`TextMarkupCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextMarkupCreate.html): The base class for all text markup creation tools.
  * [`TextHighlightCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextHighlightCreate.html): Creates [Text Highlight](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Highlight.html) annotations.
  * [`TextSquigglyCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextSquigglyCreate.html): Creates [Text Squiggly](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Squiggly.html) annotations.
  * [`TextStrikeoutCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextStrikeoutCreate.html): Creates [Text Strikeout](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/StrikeOut.html) annotations.
  * [`TextUnderlineCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextUnderlineCreate.html): Creates [Text Underline](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Underline.html) annotations.
  * [`TextLinkCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextLinkCreate.html): Creates [Link](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Link.html) annotations based on the bounding box of the selected text.
  * [`TextRedactionCreate`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextLinkCreate.html): Creates [Redaction](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/annots/Redaction.html) annotations based on the bonding box of the selected text.
* [`TextSelect`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/TextSelect.html): Selects text on pages.
  * [`AnnotEditTextMarkup`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/tools/AnnotEditTextMarkup.html): Allows one to move or resize Text Markup annotations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/android/ui-customization/tool-subclasses.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
