DynaPDF.GetAnnotLink
--------------------

Returns the URL or file path of a file link annotation.

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

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

**MBS**( **"DynaPDF.GetAnnotLink";** /\* Returns the URL or file path of a file link 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 text or error.

### Description

Returns the URL or file path of a file link annotation.   
The parameter AnnotationHandle must be a valid handle of a file link, page link, or web link annotation.   
Imported file link or web link annotations are mostly defined as page link annotation because it is impossible to distinguish between these types during import. Use the function [DynaPDF.FindLinkAnnot](DynaPDFFindLinkAnnot.md) if you need to change an imported file link or web link annotation.  
See also [GetAnnotLink](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetAnnotLink.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.FindLinkAnnot](DynaPDFFindLinkAnnot.md)
- [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)
- [DynaPDF.GetAnnotColor](DynaPDFGetAnnotColor.md)
- [DynaPDF.GetAnnotCount](DynaPDFGetAnnotCount.md)
- [DynaPDF.GetAnnotFlags](DynaPDFGetAnnotFlags.md)
- [DynaPDF.GetAnnotType](DynaPDFGetAnnotType.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetAnnotDate](DynaPDFSetAnnotDate.md)
- [DynaPDF.SetAnnotIcon](DynaPDFSetAnnotIcon.md)
- [DynaPDF.SetAnnotString](DynaPDFSetAnnotString.md)

This function checks for a license.

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

  
[DynaPDF.GetAnnotFlags](DynaPDFGetAnnotFlags.md) - [DynaPDF.GetAnnotTextAlign](DynaPDFGetAnnotTextAlign.md)

[HTML Version](DynaPDFGetAnnotLink.shtml)