DynaPDF.ChangeAnnotPos
----------------------

Changes the position and size 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.ChangeAnnotPos"; PDF; AnnotationHandle; X; Y; Width; Height ) 

**MBS**( **"DynaPDF.ChangeAnnotPos";** /\* Changes the position and size of an annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**; /\* The annotation index.e.g. 5 \*/   
**$X**; /\* The new x position \*/   
**$Y**; /\* The new y position \*/   
**$Width**; /\* The new width.e.g. 100 \*/   
**$Height**) /\* The new height.e.g. 100 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| AnnotationHandle | The annotation index. | 5 |
| X | The new x position | $x |
| Y | The new y position | $y |
| Width | The new width. | 100 |
| Height | The new height. | 100 |

### Result

Returns OK or error.

### Description

Changes the position and size of an annotation.   
Annotations which contain a visible appearance such as 3D annotations should be scaled without changing the annotation's aspect ratio.  
See also [ChangeAnnotPos](https://www.monkeybreadsoftware.com/DynaPDF-Manual/ChangeAnnotPos.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.ChangeAnnotName](DynaPDFChangeAnnotName.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

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

  
[DynaPDF.ChangeAnnotName](DynaPDFChangeAnnotName.md) - [DynaPDF.ChangeBookmark](DynaPDFChangeBookmark.md)

[HTML Version](DynaPDFChangeAnnotPos.shtml)