DynaPDF.ChangeAnnotName
-----------------------

Changes or deletes the optional unique name of an annotation.

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

MBS( "DynaPDF.ChangeAnnotName"; PDF; AnnotationHandle; Name ) 

**MBS**( **"DynaPDF.ChangeAnnotName";** /\* Changes or deletes the optional unique name of an annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**; /\* The annotation index.e.g. 5 \*/   
**$Name**) /\* The new annotation name.e.g. "MyAnnotation" \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Changes or deletes the optional unique name of an annotation.   
If the parameter Name contains an empty string, the name will be deleted. The annotation name must be a unique string so that the annotation can be identified in JavaScript actions. The string could be a GUIID, a hash, or any other string that uniquely identifies the annotation.  
  
See also [ChangeAnnotName](https://www.monkeybreadsoftware.com/DynaPDF-Manual/ChangeAnnotName.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.ChangeAnnotPos](DynaPDFChangeAnnotPos.md)
- [DynaPDF.ChangeFontSize](DynaPDFChangeFontSize.md)
- [DynaPDF.ChangeOCGName](DynaPDFChangeOCGName.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

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

  
[DynaPDF.CMYK](DynaPDFCMYK.md) - [DynaPDF.ChangeAnnotPos](DynaPDFChangeAnnotPos.md)

[HTML Version](DynaPDFChangeAnnotName.shtml)