DynaPDF.SetAnnotString
----------------------

Sets, changes, or deletes a string 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.SetAnnotString"; PDF; AnnotationHandle; StringType; Value ) 

**MBS**( **"DynaPDF.SetAnnotString";** /\* Sets, changes, or deletes a string of an annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**; /\* The annotation index.e.g. 5 \*/   
**$StringType**; /\* Which string to change. Can be Author, Comment, Name or Subject.e.g. "Name" \*/   
**$Value**) /\* The new value.e.g. "Joe Miller" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| AnnotationHandle | The annotation index. | 5 |
| StringType | Which string to change. Can be Author, Comment, Name or Subject. | "Name" |
| Value | The new value. | "Joe Miller" |

### Result

Returns OK or error.

### Description

Sets, changes, or deletes a string of an annotation.  
See also [SetAnnotString](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetAnnotString.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.CreateGoToEAction](DynaPDFCreateGoToEAction.md)
- [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)
- [DynaPDF.GetAnnotCount](DynaPDFGetAnnotCount.md)
- [DynaPDF.GetAnnotLink](DynaPDFGetAnnotLink.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetAnnotColor](DynaPDFSetAnnotColor.md)
- [DynaPDF.SetAnnotFlags](DynaPDFSetAnnotFlags.md)
- [DynaPDF.SetAnnotIcon](DynaPDFSetAnnotIcon.md)
- [DynaPDF.SetAnnotOpacity](DynaPDFSetAnnotOpacity.md)
- [DynaPDF.SetAnnotSubject](DynaPDFSetAnnotSubject.md)

This function checks for a license.

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

  
[DynaPDF.SetAnnotOpenState](DynaPDFSetAnnotOpenState.md) - [DynaPDF.SetAnnotSubject](DynaPDFSetAnnotSubject.md)

[HTML Version](DynaPDFSetAnnotString.shtml)