DynaPDF.GetAnnotTextAlign
-------------------------

Returns the text alignment of an annotation.

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

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

**MBS**( **"DynaPDF.GetAnnotTextAlign";** /\* Returns the text alignment of an 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 alignment or error.

### Description

Returns the text alignment of an annotation.   
At time of publication only FreeText annotations support a text alignment.  
Result is Left, Center, Right or Justify.  
See also [GetAnnotTextAlign](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetAnnotTextAlign.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)
- [DynaPDF.GetFieldTextAlign](DynaPDFGetFieldTextAlign.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldTextAlign](DynaPDFSetFieldTextAlign.md)

### Release notes

- **Version 14.5**
    - Added [DynaPDF.GetAnnotTextAlign](https://www.mbsplugins.eu/DynaPDFGetAnnotTextAlign.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin in Version 14.5](https://www.mbsplugins.de/archive/2025-01-08/New_in_MBS_FileMaker_Plugin_in/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.5pr1](https://www.mbsplugins.de/archive/2024-10-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th September 2024 , last changed 19th September 2024

  
[DynaPDF.GetAnnotLink](DynaPDFGetAnnotLink.md) - [DynaPDF.GetAnnotType](DynaPDFGetAnnotType.md)

[HTML Version](DynaPDFGetAnnotTextAlign.shtml)