DynaPDF.SetAnnotFlagsEx
-----------------------

Sets or changes the flags 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.SetAnnotFlagsEx"; PDF; AnnotationHandle; Flags ) 

**MBS**( **"DynaPDF.SetAnnotFlagsEx";** /\* Sets or changes the flags of an annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**; /\* The annotation index.e.g. 5 \*/   
**$Flags**) /\* The new flags.e.g. 4 \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Sets or changes the flags of an annotation.  
See also [SetAnnotFlagsEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetAnnotFlagsEx.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetAnnotFlags](DynaPDFGetAnnotFlags.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetAnnotFlags](DynaPDFSetAnnotFlags.md)
- [DynaPDF.SetAnnotOpacity](DynaPDFSetAnnotOpacity.md)
- [DynaPDF.SetImportFlags](DynaPDFSetImportFlags.md)
- [DynaPDF.SetImportFlags2](DynaPDFSetImportFlags2.md)

This function checks for a license.

Created 25th November 2014 , last changed 27th May 2017

  
[DynaPDF.SetAnnotFlags](DynaPDFSetAnnotFlags.md) - [DynaPDF.SetAnnotHighlightMode](DynaPDFSetAnnotHighlightMode.md)

[HTML Version](DynaPDFSetAnnotFlagsEx.shtml)