DynaPDF.GetAnnotType
--------------------

Returns the type of a specific annotation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetAnnotType"; PDF; AnnotationHandle ) 

**MBS**( **"DynaPDF.GetAnnotType";** /\* Returns the type of a specific annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**) /\* The annotation index.e.g. 5 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| AnnotationHandle | The annotation index. | 5 |

### Result

Returns type or error.

### Description

Returns the type of a specific annotation.   
If the function succeeds the return value is the annotation type.  
| Value | Description |
|---|---|
| Caret | Caret |
| Circle | Circle |
| FileLink | A Link annotation with an associated GoToR action (go to remote) |
| FreeText | Free text |
| Highlight | Highlight annotation |
| Ink | Ink drawing |
| Line | Line |
| PageLink | A Link annotation with an associated GoTo action |
| Polygon | Polygon |
| PolyLine | Polyline |
| PopUp | Popup |
| Square | Square |
| Squiggly | Highlight annotation |
| Stamp | Stamp |
| StrikeOut | Highlight annotation |
| Text | Also used as container to store the State Model |
| Underline | Highlight annotation |
| WebLink | A Link annotation with an associated URI action |
| Widget | Form Fields are handled separately |
| 3D | 3D, PDF 1.6 |
| SoundAnnot | Sound, PDF 1.2 |
| FileAttach | File Attachment, PDF 1.3 |
| Redact | Redact, PDF 1.7 |
| Watermark | Watermark, PDF 1.6 |
| Unknown | Unknown annotation type |
| MovieAnnot | Movie, PDF 1.2 |
| PrinterMark | Printer Mark, PDF 1.4 |
| Projection | Projection, PDF 1.7 Extension Level 3 |
| RichMedia | Rich Media, PDF 1.7 Extension Level 3 |
| Screen | Screen, PDF 1.5 |
| TrapNet | TrapNet, PDF 1.3 |

See also [GetAnnotType](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetAnnotType.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.DeleteAnnotation](DynaPDFDeleteAnnotation.md)
- [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)
- [DynaPDF.GetAnnotColor](DynaPDFGetAnnotColor.md)
- [DynaPDF.GetAnnotCount](DynaPDFGetAnnotCount.md)
- [DynaPDF.GetAnnotFlags](DynaPDFGetAnnotFlags.md)
- [DynaPDF.GetAnnotLink](DynaPDFGetAnnotLink.md)
- [DynaPDF.GetFieldType](DynaPDFGetFieldType.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetAnnotDate](DynaPDFSetAnnotDate.md)
- [DynaPDF.SetAnnotIcon](DynaPDFSetAnnotIcon.md)

This function checks for a license.

Created 25th November 2014 , last changed 25th November 2014

  
[DynaPDF.GetAnnotTextAlign](DynaPDFGetAnnotTextAlign.md) - [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)

[HTML Version](DynaPDFGetAnnotType.shtml)