DynaPDF.GetPageAnnotation
-------------------------

Queries details about an annotation on current open page.

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

MBS( "DynaPDF.GetPageAnnotation"; PDF; AnnotationHandle; Selector ) 

**MBS**( **"DynaPDF.GetPageAnnotation";** /\* Queries details about an annotation on current open page. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**; /\* The annotation index.e.g. 5 \*/   
**$Selector**) /\* Which value to query. Possible values: Type, Deleted, BBox, BorderWidth, BorderColor, BorderStyle, BackColor, Handle, Author, Content, Name, Subject, PageNum, HighlightMode, DestPage, DestPos, DestType, DestFile, Icon, StampName, AnnotFlags, CreateDate, ModDate, Grouped, Open, Parent, PopUp, State, StateModel, EmbeddedFile, Subtype, PageIndex, MarkupAnnot, Opacity, QuadPoints, DashPattern, Intent, LE1, LE2, Vertices, Caption, CaptionOffsetX, CaptionOffsetY, CaptionPos, LeaderLineLen, LeaderLineExtend or LeaderLineOffset.e.g. "Name" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| AnnotationHandle | The annotation index. | 5 |
| Selector | Which value to query. Possible values: Type, Deleted, BBox, BorderWidth, BorderColor, BorderStyle, BackColor, Handle, Author, Content, Name, Subject, PageNum, HighlightMode, DestPage, DestPos, DestType, DestFile, Icon, StampName, AnnotFlags, CreateDate, ModDate, Grouped, Open, Parent, PopUp, State, StateModel, EmbeddedFile, Subtype, PageIndex, MarkupAnnot, Opacity, QuadPoints, DashPattern, Intent, LE1, LE2, Vertices, Caption, CaptionOffsetX, CaptionOffsetY, CaptionPos, LeaderLineLen, LeaderLineExtend or LeaderLineOffset. | "Name" |

### Result

Returns value or error.

### Description

Queries details about an annotation on current open page.  
The parameter AnnotationHandle must be the array index of the page in which the annotation is used. To enumerate the annotations of a page execute the function in a loop from 0 to [DynaPDF.GetPageAnnotCount](DynaPDFGetPageAnnotCount.md) - 1.   
See also [GetPageAnnotation](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetPageAnnot.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.DeleteAnnotation](DynaPDFDeleteAnnotation.md)
- [DynaPDF.FlattenAnnotOrField](DynaPDFFlattenAnnotOrField.md)
- [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)
- [DynaPDF.GetOrientation](DynaPDFGetOrientation.md)
- [DynaPDF.GetPageAnnotCount](DynaPDFGetPageAnnotCount.md)
- [DynaPDF.GetPageFieldAnnotation](DynaPDFGetPageFieldAnnotation.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

Created 25th November 2014 , last changed 2nd September 2022

  
[DynaPDF.GetPageAnnotCount](DynaPDFGetPageAnnotCount.md) - [DynaPDF.GetPageBBox](DynaPDFGetPageBBox.md)

[HTML Version](DynaPDFGetPageAnnotation.shtml)